Forum Discussion
Bob_10976
Oct 29, 2008Nimbostratus
Ok, that makes sense....
I'm not very good at the syntax so i'm not 100% that my "and" statement is correct or not, eitherway it still didn't work...
when HTTP_REQUEST {
if { ([string tolower [HTTP::uri]] equals "subsite.mysite.com") || ([string tolower [HTTP::uri]] equals "www.subsite.mysite.com")} {
if { [string tolower [HTTP::uri]] equals "/" } {
HTTP::respond 301 Location http://mysite.com/
}
}
}
Thanks,
Bob