ah thankyou Brin that would make more sense.

so I need to test something like

Code:
if domain = "olddomainname" or domain ="domainwithoutwww" then

ridirect()
end if
I will google how to get the domain, presumably I can obtain this from the server code without having to do any tricky javascript.