Forum Discussion
cody8411_186897
Nimbostratus
Sep 30, 2015URI's and IIS
Sorry if this has been asked before, I was not sure what to search for on this as I am not very familiar with IIS.
I have an iRule that is taking www.company.com and sending traffic to different po...
Kevin_Stewart
Employee
Sep 30, 2015You can rewrite the incoming URI any way you like with the HTTP::uri command:
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/images" } {
rewrite the URI
HTTP::uri [string map -nocase {"/images" "/img"} [HTTP::uri]]
}
}
Here I used the HTTP::uri command to both read and write the URI.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
