Singh_74932
Jul 28, 2008Nimbostratus
what' wrong with iRule ?
when HTTP_REQUEST {
if { (([HTTP::host] equals "abc.com") or ([HTTP::host] equals "www.abc.com") or ([HTTP::host] equals "isp1.abc.com ") or ([HTTP::host] equals "isp2.abc.com")) and not [HTTP::uri] equals "/admin/f5.txt"}
{
HTTP::redirect "http://www.xyz.com"
}
elseif { (([HTTP::host] equals "pqr.com") or ([HTTP::host] equals "www.pqr.com")) and not [HTTP::uri] equals "/admin/f5_pqr.txt" } {
HTTP::redirect "http://www.xyz.com/[HTTP::uri]"
}
else
{
pool MY_DEFAULT_POOL
}
}
Will this work .. or is this thing require HTTP profiles to be setup on VS ?