HK_ONG_37002
Apr 30, 2008Nimbostratus
Any ideas for [HTTP::path] eq "/"
Hi,
What is the function for [HTTP::path] eq "/". If below iRule without [HTTP::path] eq "/" internet browser display status code 302.
when HTTP_REQUEST {
if { ([HTTP::host] equals "abc.domain.test.com") and ([HTTP::path] eq "/")} {
HTTP::redirect http://[HTTP::host]/snoop
} elseif {([HTTP::host] equals "xyz.domain.test.com") and ([HTTP::path] eq "/")} {
HTTP::redirect http://[HTTP::host]/hello
}
}
Any ideas would be greatly appreciated.
Regards,