Joe_Wiitala_190
Nov 19, 2015Nimbostratus
301 Redirect only the root URL nothing underneath.
I have a site where I'd like to only redirect the top URL but nothing underneath.
For example somone goes to www.xxx.com and gets a 301 redirect but if the go to www.xxx.com/test it will take them to the specified location
this redirects but redirects everything
switch [string tolower [HTTP::host]] { "www.xxx.com" - "xxx.com" - "www.yyy.com" {HTTP::respond 301 Location ""}