Classic ASP – 301 permanent redirection tutorial!

SEO people sometimes ask the programmers to redirect the page and they say us to make it 301 redirect.

Here is the way, all you have to do is add the header before redirection!


<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location","yourpage.asp"
%>

Also you can use this script to Redirect Classic ASP site to aspx .Net site!


<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location","http://youraspxsite.com/somepage.aspx"
%>

About the Author

agurchand

Software Engineer, Blogger etc., Visit my Youtube channel - <a href="http://www.youtube.com/agurchand">Click Here</a>

Leave a Reply

Your email address will not be published. Required fields are marked *