Puneet_73909
Jun 26, 2009Nimbostratus
Wildcard redirection
Hi I am trying to write an irule but unable to do so. SEEK HELP
This one works:
when HTTP_REQUEST {
if {([string tolower [HTTP::path]] ends_with "/doc")} {
HTTP::redirect "http://[HTTP::host]/nmhomepage.jsp"}}
I want if user type www.xyz.com/doc/blablah then it redirects to
HTTP::redirect "http://[HTTP::host]/nmhomepage.jsp"
Please help me to write an redirect rule.
Puneet