affiliate_link

Monday, July 16, 2012

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>

No comments: