Forum Discussion
Wilson_Stuart
Nimbostratus
Mar 13, 2017URI based 301 redirection to alternate Virtual Server
I am a novice when it comes to working with iRules, and I have a need to redirect incoming http requests from the default virtual-server to an alternate VS only if the contents of the uri match a cer...
Stephane_Viau
Nimbostratus
Mar 13, 2017It looks fine :) However since both "if" do the same thing, you could group them together. Ex :
if { (HTTP::path] ...) or (HTTP::path] ...) }
But otherwise it should work. You can also replace [HTTP::path] by [HTTP::uri] in the redirection if you also wish to keep the query string.
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
