I want to know about 301 Error for website, I Binged about it and got the some overview about 301 Redirect Error.
I also got the code for ASP.NET 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>
Basically, this code
Will create an HTTP response, that would tell client (browser) – “the resouce you’ve been looking to is not here any more, go and look to anthor place”. Default behavior for browsers are indeed just go and look for given URI.