Forum Discussion
Mario_9378
Nimbostratus
Nov 13, 2007Rewriting URLs (stripping out prefix)
I'm new to iRules and I would like to be able to do something like so:
if URI starts with /2.4/rest_of_URL then
goto pool X but strip out 2.4 and have /rest_of_URL seen at destinatio...
JRahm
Admin
Nov 13, 2007
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/2.4/" } {
HTTP::uri [string replace [HTTP::uri] 0 3]
pool x
} elseif { [HTTP::uri] starts_with "/2.5/" } {
HTTP::uri [string replace [HTTP::uri] 0 3]
pool y
}
} RE: I didn't want to expend lots of time with experimentation and/or trying to find examples ...
The notion that your time is more valuable than the members of the community on which you lean...not liking that very much.
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
