Forum Discussion
TT_179079
Nimbostratus
Sep 27, 2016irule - host and uri redirect
Hi
Looking for assistance to create IRULE to redirect the following urls. Any assistance is appreciated in advance
VIP -10.10.10.1 -abcd.com
http://abcd.com/ ...
janholtz
Altostratus
Sep 27, 2016Here we go:
when HTTP_REQUEST {
if {[HTTP::host] equals "abcd.com" } {
switch -glob [HTTP::uri] {
"" -
"/" {
HTTP::redirect "http://www.xyz.com/providers/systems/electronic/"
}
"/the-advantage*" {
HTTP::redirect "http://www.xyz.com/providers/systems/for-you/"
}
"/financial-app*" {
HTTP::redirect "http://www.xyz.com/contact/"
}
"/featured-test-app*" {
HTTP::redirect "http://www.xyz.com/test/"
}
}
}
}
//Jan
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