Forum Discussion
socar65
Apr 04, 2018Nimbostratus
Redirect to another url and pool
Hi All,
Got a requirement from my user who is adding a new application, but the old app is still tied to some other services, so they don't want to get rid of that app, rather redirect to that a...
Rajesh_261121
Nimbostratus
I had set this up as two irule, the first irule is for the redirect to new URL alone and the second irule is to check the new URL header/ URI string match and send it to the new pool.
Rajesh_261121
Apr 05, 2018Nimbostratus
Here is the first one
when HTTP_REQUEST { if { [HTTP::host] eq "header.org" && [HTTP::uri] eq "/uri" } { HTTP::redirect "http://header2.org/newuri/"; } } Second one:
when HTTP_REQUEST { if { ([HTTP::host] eq "header2.org") && ( [HTTP::path] starts_with "/newuri") } { pool new-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