19-Feb-2020 01:25
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!
Solved! Go to Solution.
19-Feb-2020 08:32
Following should do what you are asking for::
when HTTP_REQUEST {
if { [HTTP::host] contains "xxxx.aaaa.com"} {
HTTP::redirect "http://aaaa.com/zzzzz"
}
}
19-Feb-2020 05:51
Hi birchy,
See what you can do with the HTTP::redirect
Regards
19-Feb-2020 06:23
try this. Hope it will work for you.
when HTTP_REQUEST {
if { [HTTP::host] eq "xxxx.aaaa.com"} {
HTTP::redirect "http://aaaa.com/zzzzz"
}
}
19-Feb-2020 08:32
Following should do what you are asking for::
when HTTP_REQUEST {
if { [HTTP::host] contains "xxxx.aaaa.com"} {
HTTP::redirect "http://aaaa.com/zzzzz"
}
}
20-Feb-2020 00:03
Thanks this looks like what i am after :).
20-Feb-2020 12:58
Good to know it helped.
Could you please mark it as answered.