301 error and search engine
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,
<s开发者_JS百科cript 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
private void Page_Load(object sender, System.EventArgs e) {
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location","http://www.new-url.com");
}
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.
Look at the spec for HTTP Status Codes
Its hard to fully understand what your exact question is here. But hopefully these help you,
Google have some detail here on 301s, including a video with Matt Cutt's (Google's head of WebSpam) From an SEO standpoint, SEOMoz's article here may be of use.
As alexanderb says, the purpose of a 301 is to say 'the resource [page in most cases] is no longer at this address - instead go here.'
精彩评论