Forum Discussion
socar65
Mar 08, 2018Nimbostratus
Redirect 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...
socar65
Mar 08, 2018Nimbostratus
goes to default pool B www-abc.com/rd/ui goes to pool A that's the entire path
path should change to path but use pool A
EX: if { ($requestURI starts_with "/rd/ui/")} { HTTP::uri [string map {/rd/ui/ " /"/} {requestURI] pool ext_servername_pool HTTP::redirect "http://www-abc.com[HTTP::uri]"
Another Ex
if { ($requestURI starts_with "/rd/ui/")} {
HTTP::respond 302 location "http://www-abc.com/'
TCP::close
return
}
else {
pool ext_servernamer_pool
}
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