ASP.Net 301 Redirect


<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location","http://www.new-url.com");
}
</script>

Facebook Comments

One thought on “ASP.Net 301 Redirect

  1. After I originally left a comment I appear to have clicked on the -Notify me when new comments aree added- checkbox and now whenever a comment is added
    I get 4 emails with the exact same comment. Perhaps there is a way
    you are able to remove me from that service? Thanks a lot!

Leave a Reply

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