V4ISHAKH
Nov 01, 2021Nimbostratus
Masking the redirected URL
Hi Folks,
I have an irule as below, after the redirection how can I keep the original URL which is https://xyz.com
when HTTP_REQUEST {
if { [active_members [LB::server pool]] == 0 }
{ if HTTP_RESPONSE
HTTP::redirect "http://sv2lxtabassit01:8080/index.html"
}
}
I tried to map the URL to xyz.com but it is not working
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/sv2lx" } {
HTTP::uri [string map -nocase {"/sv2lx" "/xyz.com"} [HTTP::uri]]
}
}