Forum Discussion
JRahm
Oct 29, 2009Admin
So, IF host = data.abc.com AND uri = /, redirect to www.abc.com/data?
If so, try this:
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] eq "data.abc.com" && [HTTP::uri] eq "/" } {
HTTP::redirect "http://www.[domain [HTTP::host] 2]/[getfield [HTTP::host] "." 1]"
}
}