Forum Discussion
socar65
Nimbostratus
Mar 08, 2018Redirect to another Pool
Hi Guys,
Quick question, as I am kind of new to irules, but have done plenty but just can't seem to get this request to work.
Here Goes:
User has a url --https://www.abc.com/rd/ui/ po...
brad_11480
Nimbostratus
Mar 09, 2018Then set your default path to poolB and all paths will go there except for the one in the irule. your example seems in line.. synatax on the string map and you won't need a redirect.
if { ($requestURI starts_with "/rd/ui/")} {
HTTP::uri [string map "/rd/ui/ /" $requestURI]
pool ext_servername_pool
the string map will replace /rd/ui/ with a / and set the URI to that result it will then switch to pool ext_servername_pool in place of the default pool if you then issued a redirect it would process the iRule again and end up in the default pool.
good luck.
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