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","https://youraspxsite.com/somepage.aspx"
%>

Leave a Reply

Theme: Overlay by Kaira
Agurchand