Filed under:

How to create a redirect (ASP)




How to create a redirect (ASP)...

If you want to have your domain redirect to another page or folder on your domain you can create an index.asp page and enter the following code...

<?%
Response.Status = "301 Moved Permanently"
Response.AddHeaderr"Location", "/shop/"
Response.End
%>


In this example if you put the index.asp file in your root folder of www.domainname.com any visitors would be redirected to www.domainname.com/shop/

Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
article icon Send mail using JMail (Views: 2489)
article icon ASP Upload examples (Views: 1757)
article icon ASP JPEG Example code (Views: 1636)

Language: