Ahmad_03_151082
Apr 27, 2016Nimbostratus
redirect
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" { 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" }
}
}
}
What I need to iRule to redirect
**www.z.com/wps/portal TO www.z.com/wps/portal/example**
Appreciate you help