Return to Snippet

Revision: 2800
at April 16, 2007 21:47 by jonhenshaw

Initial Code
<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
Response.Status = "301 Moved Permanently";

Initial URL

Initial Description
This redirects visitors to a new URL using a 301 redirect. Using a 301 redirect is the safest way to let search engines like Google, Yahoo!, Live and Ask know your address has changed.

Initial Title
ASP .NET 301 Redirect

Initial Tags
redirect, Net, ASP

Initial Language