Forum Discussion
Nov 16, 2005
First of all, I moved this from the iControl to iRules forum (in case you were wondering).
This rule won't work as-is but will with some slight modificatons. You'll need to change the 4.x variables to their 9.x counterparts and change the parens in your if's to curly braces.
when HTTP_REQUEST {
if { ([HTTP::host] contains "www.dzi.dhl.com") and
([HTTP::uri] contains "client") } {
HTTP::redirect "https://interactive1.dhl.com/client/index.jsp"
} elseif { [HTTP::host] eq "www.dzi.dhl.com" } {
HTTP::redirect "https://interactive1.dhl.com/dzi/controller/login"
} elseif { [HTTP::host] eq "www.dzi.danzas.com" } {
HTTP::redirect "https://interactive1.dhl.com/dzi/controller/login"
} else {
discard
}
}
-Joe