Creating a redirect using ASP

Place the code below at the beginning of your .ASP home page.  If you do not have a home page using ASP create a text file, place the code in it and save it as default.asp.  

*remember to replace the "firstdomainname.com" and "seconddomainname.com" with your actual domain names.  


<%=Request.QueryString("Refer")%>
<%sname = Request.ServerVariables("SERVER_NAME")
sname = lcase(sname)
if InStr(sname,"firstdomainname.com") = 1 then
response.redirect "seconddomainname.com"
end if
%>
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Where can I find documentation for ServerObject's AspMail component?

This documentation can be found at: http://www.serverobjects.com/products.html For...

How do I upload files through my web pages?

You can use Software Artisan's SAFileUP. This is an ASP component that allows you to upload files...

What is PageCounter and how do I use it?

About Page Counter PageCounter is an object that counts and displays the number of times a Web...

How do I setup Microsoft Outlook Express to read my e-mail?

Follow these steps: Open Microsoft Outlook Express. From the Tools menu, click...

How do I setup Netscape Messenger to read my e-mail?

Follow these steps: Open Netscape Navigator. Click the Edit menu and then click Preferences......