Forum Discussion
Christian_Greyl
Nimbostratus
Dec 04, 2015One VIP with two URLs redirecting to two URIs
Hi
I'm new with Irules so there's probably something small amiss here.
I want the Irule to detect the difference between these two URLs and redirect it accordingly to the correct URL and URI. ...
StephanManthey
Nacreous
Dec 04, 2015Hi Christian,
you can try the following, please:when HTTP_REQUEST {
if { ([string tolower [HTTP::host]] equals "smartit.xyz.com") and ([HTTP::uri] equals "/") } {
HTTP::redirect "https://smartit.xyz.com/ux/smart-it//"
return
}
if { ([string tolower [HTTP::host]] equals "myit.xyz.com") and ([HTTP::uri] equals "/") } {
HTTP::redirect "https://myit.xyz.com/ux/myitapp//"
return
}
}
Thanks, Stephan
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