Jul
04
2002
Redirecting with status 301 in ASP
Posted by admin under
ASP
As described in the related article about 301 redirects it is sure important to do proper redirections i.e using status code 301 indicating for search engines that a real/permanent move of the file has been made.
Some people contacted me right away after I published the ASP.NET article, asking about the ASP equivalent. I can't say how to create a generic handler (not sure it's even possible) but redirecting a single page is sure simple enough:
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", " http://www.aspcode.net/newurl/"
>