G
Greg
I need to use an ASP script to redirect to my domains.
This example is what my webhost gave me. But i'm not sure
what i need to change it to.
<%
EnableSessionState=False
host = Request.ServerVariables("HTTP_HOST")
if host = "wb-webdesign.co.uk" or host = "www.wb-
webdesign.co.uk" then
response.redirect("http://wb-
webdesign.co.uk/subdir1/default.htm")
elseif host = "westbarton.co.uk " or host
= "www.westbarton.co.uk " then
response.redirect
("http://westbarton.co.uk/subdir2/default.htm")
else
' if we get no host or undefined host
response.redirect("http://wb-
webdesign.co.uk/nosite.htm")
end if
%>
Any help would be much appreciated.
Thanks,
....Greg
This example is what my webhost gave me. But i'm not sure
what i need to change it to.
<%
EnableSessionState=False
host = Request.ServerVariables("HTTP_HOST")
if host = "wb-webdesign.co.uk" or host = "www.wb-
webdesign.co.uk" then
response.redirect("http://wb-
webdesign.co.uk/subdir1/default.htm")
elseif host = "westbarton.co.uk " or host
= "www.westbarton.co.uk " then
response.redirect
("http://westbarton.co.uk/subdir2/default.htm")
else
' if we get no host or undefined host
response.redirect("http://wb-
webdesign.co.uk/nosite.htm")
end if
%>
Any help would be much appreciated.
Thanks,
....Greg