Forum Discussion
N_67263
Nimbostratus
Jun 17, 2014help with reference to an iRule creation.
Hi,
I need to create an iRule which essentially redirects a https site to another https site but also if there is some URI in the original site this iRule should not take any action.
e.g. redire...
Cory_50405
Noctilucent
Jun 17, 2014This will redirect only in the case that the host is abc.test.com and the URI has no value specified (default is /):
when HTTP_REQUEST { if { [[HTTP::host] eq "abc.test.com"] and [[HTTP::uri] eq "/"] } { HTTP::redirect "https://xyz.test.com" } }
Steve_M__153836
Nimbostratus
Jun 17, 2014Would it be a good idea to do
when HTTP_REQUEST { if { [[HTTP::host] eq "abc.test.com"] and [[HTTP::uri] ne "/support"] } { HTTP::redirect "https://xyz.test.com" } }
in case someone puts some additional path after the "/" that isn't "support"?
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