301 Redirect in classic ASP

<%
Response.Status = "301 Moved Permanently"
Response.AddHeader "Location", "http://www.website.com/"
Response.End
%>

Above code is enough for Redirection but its better put a link because you never know a user might have turned off auto redirection


<table>
<tr>
<td align="center" width="100%">
<h1>The page you are looking for has moved...</h1>
We have recently updated our site and the page you are looking for has moved.
Click <a href="http://www.website.com/">here</a> to continue
</td>
</tr>
</table>


Get Free Email Updates!

Signup now and receive free offers, discounts & coupon codes

I agree to have my personal information transfered to Mad Mimi ( more information )

I will never give away, trade or sell your email address. You can unsubscribe at any time.

Leave a Reply

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

CommentLuv badge

This site uses Akismet to reduce spam. Learn how your comment data is processed.