Making Permanent redirect in Classic ASP

How to make Permanent redirect in Classic ASP?

Solution

If you want to redirect page a.asp to b.asp Permanently write (you can copy below code)  following code on a.asp. Replace www.example.com with your site name

<%
 @language=VBScript
%>
<%
Response.Status=”301 Moved Permanently”
Response.AddHeader “Location”,”http://www.example.com/b.asp”
%>

IMP Note

Always use www.example.com for any example i.e in case of website, email abc@example.com

Leave a Reply

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