About HTTP return Codes 301, 302 differences with SEO

Source: Internet
Author: User

Label:

301 (permanently moved) The requested page has been permanently moved to a new location. When the server returns this response, the requestor is automatically forwarded to the new location. You should use this code to tell the search engine that a Web page or Web site has been permanently moved to a new location. It is recommended to use 301 jumps when URL normalization, such as Google.com jump to www.google.com, as shown in.

302 (Temporary move) The server is currently responding to a request from a Web page in a different location, but the requestor should continue to use the original location to respond to subsequent requests. This code, similar to Response 301, will automatically move the requestor to a different location, but you should not use this code to tell Googlebot that a Web page or site has moved because Googlebot will continue to crawl the original location and index it when you do not jump across domains. More knowledge: 301 RedirectsThree major search engines (Google, Bing, Yahoo) treat 301 the same way. They ignore the original link and then add the redirected new link to the index. For example: If using 301 to redirect http://www.neegou.com to http://www.google.com, then the search engine thought www.neegou.com no longer exists, and later only included www.google.com. 301 redirects are useful when the site needs to refactor URLs. For example, the previous URL is similar to: http://www.neegou.com/index.php?page=xxx&article=xxx&id=xxx&section=xxx now in order to beautify the URL, Changed to: http://www.neegou.com/article-xxx.html this way, there will be two or more URLs pointing to the same content page. Google thinks this is bad, a URL should correspond to a separate content page, and then start to reduce the trust level of the site, resulting in the site in Google's rankings. If you redirect old links to a new link with 301, just tell Google that the old links are useless, and you can remove them from the index, and include the new links now. Well, this is exactly what we need. 302 redirects302 redirects are divided into two types: On-domain and Off-domain.on-domain: refers to the 302 redirect source URL and destination URL on the same domain. Example: 302 http://www.neegou.com/china.html to http://www.neegou.com/ Usa.htmlgoogle in the collection of china.html, found china.html jump to usa.html, but because it is the status code 302, only a temporary jump, so Google search "USA", or display HTTP// www.neegou.com/china.html this URL. Off-domain: In contrast to On-domain, off-domain means that the source and destination URLs of the 302 redirect are not on the same domain. For example: 302 http://www.neegou.com/mail.html to Http://www.google.com/mail because 302 redirects are easily hijacked by URLs (URL hijacking), so in this case most of the time, Google treats 302 as 301来. When you search for mail with Google, the Http://www.google.com/mail URL is displayed directly.

About HTTP return Codes 301, 302 differences with SEO

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

Tags Index: