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 "" and "" with your actual domain names.  

<%sname = Request.ServerVariables("SERVER_NAME")
sname = lcase(sname)
if InStr(sname,"") = 1 then
response.redirect ""
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: 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......