Hey all,
i have been asked to redirect a sub domain to a sub directory of the root domain - any pointers on what type of IRule to use?
for instance we want to redirect xxxx.aaaa.com to aaaa.com/zzzzz
Thanks!
Hey all,
i have been asked to redirect a sub domain to a sub directory of the root domain - any pointers on what type of IRule to use?
for instance we want to redirect xxxx.aaaa.com to aaaa.com/zzzzz
Thanks!
try this. Hope it will work for you.
when HTTP_REQUEST {
if { [HTTP::host] eq "xxxx.aaaa.com"} {
HTTP::redirect "http://aaaa.com/zzzzz"
}
}
Following should do what you are asking for::
when HTTP_REQUEST {
if { [HTTP::host] contains "xxxx.aaaa.com"} {
HTTP::redirect "http://aaaa.com/zzzzz"
}
}
Thanks this looks like what i am after :).
Good to know it helped.
Could you please mark it as answered.