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. ...
Christian_Greyl
Nimbostratus
Dec 07, 2015Thanks you for the reply 😄 . Shortly after posting this I got it sorted by doing the following.
when HTTP_REQUEST {
if { [HTTP::host] equals "smartit.xyz.com" and [HTTP::uri] equals "/" }{
HTTP::redirect "[https://smartit.xyz.com/ux/smart-it//](https://smartit.xyz.com/ux/smart-it//)"
}
if { [HTTP::host] equals "myit.xyz.com" and [HTTP::uri] equals "/" } {
HTTP::redirect "[https://myit.xyz.com/ux/myitapp//](https://myit.xyz.com/ux/myitapp//)"
}
}
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