27 lines
791 B
Plaintext
27 lines
791 B
Plaintext
'This is the code which one can use to redirect a website to a different page or directory.
|
|
|
|
<%
|
|
sDomain=LCase(request.ServerVariables("HTTP_HOST"))
|
|
Select Case sDomain
|
|
Case "www.totallyawesome.net", "totallyawesom.net"
|
|
Response.Redirect "/totally.asp"
|
|
End Select
|
|
%>
|
|
|
|
Instructions:
|
|
|
|
Copy/paste the above clip at the top of your home page,
|
|
or at the top of an include file that you use for all pages.
|
|
|
|
Replace "www.totallyawesome.net" AND "totallyawesome.net" with your domain name.
|
|
|
|
Replace "/totally.asp with your own file OR directory, like "/totallyawesome/".
|
|
|
|
Add as many case statements as necessary:
|
|
|
|
Case "www.totallyawesome.net", "totallyawesom.net"
|
|
Response.Redirect "/totally.asp"
|
|
Case "www.totally.com", "totally.com"
|
|
Response.Redirect "/totally.asp"
|
|
|