Forum Discussion
Sanjay_Bhandari
Nimbostratus
Oct 10, 2013Conditional redirection seeing the url ?
Original plan was to have it as follows
abc.xyz.com/stage
abc.xyz.com/dev
abc.xyz.com/
The web services folks could not create a page with /dev and /stage
when HTTP_REQUEST {
Check the ...
Chris_Akker_129
Oct 10, 2013Historic F5 Account
Hi Sanjay, you need to switch on the HTTP HOST name, not the URI. The Host is the fqdn, the URI is the path starting with the first forward slash / (after the host.domain.com:port).
Something like:
switch
HTTP::host=abc.xyz.com
Pool prod-pool
HTTP::host=abcdev.xyz.com
Pool dev-pool
HTTP::host=abcstage.xyz.com
Pool stage-pool
Looks for examples on "Universal HTTP host redirect" in CodeShare.
-Chris.
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