Forum Discussion
Ahmad_03_151082
Nimbostratus
Apr 27, 2016redirect
Dears
Hope some one can help me on my issue
I already have iRules for my domain
when HTTP_REQUEST {
if { [HTTP::uri] equals "/"}
{
switch [string tolower [HTTP::host]] {
"www.x.com" {...
Andy_McGrath
Cumulonimbus
Apr 27, 2016when HTTP_REQUEST {
if { [HTTP:host] equals "www.z.com" and [HTTP::path] equals'/wps/portal' }{
HTTP::redirect "http://www.z.com/wps/portal/example"
}
if { [HTTP::uri] equals "/"} {
switch [string tolower [HTTP::host]] {
"www.x.com" { HTTP::uri "/wps/portal/y" }
"www.z.com" { HTTP::uri "/wps/portal/example" }
}
} else {
switch -glob [HTTP::path] {
"/wps/portal/w*" { HTTP::redirect "http://www.xyz.com" }
"/wps/portal/q" { HTTP::redirect "http://xyz.com/r" }
}
}
}
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