August 20, 2003

Redirect a Page using ASP


1:     Redirect a page using ASP:
www.mydomain.com/oldpage.asp to www.mydomain.com/newpage.asp.
Here's the code you would put in oldpage.asp:
2: <%
3:
4: Response.Status = "301 Moved Permanently"
5: Response.AddHeader "Location", "http://www.mydomain.com/newpage.asp"
6:
7: %>
8:
9:

Posted by sachauncey at August 20, 2003 01:49 PM