301 Differences from 302 redirects

Source: Internet
Author: User

1, what is the 301 turn? What is 301 redirect?

301 Steering (or 301 redirect, 301 jump) is one of the status codes in the header of the HTTP data stream that the server returns when the user or search engine sends a browse request to the Web server, indicating that the page is permanently transferred to another address.

2. What is 302 redirect?

302 redirect also known as 302 for transient transfer (temporarily Moved), English name: 302 redirect. is also considered a temporary redirect (temporary redirect), a Web browser instruction to show the browser is required to display the different URLs, when a Web page experienced a short-term URL changes when used. A temporary redirect is a server-side redirect that can be handled correctly by the search engine spiders.

3, 301 redirect and 302 redirect Difference

302 redirects are temporary redirects, and search engines crawl new content and keep the old URLs. Because the server returns 302 code, the search engine thinks the new URL is only temporary.

301 redirects are permanent redirects, and search engines also replace old URLs with redirected URLs while crawling new content.

4. Why 302 redirect and URL hijacking associated

When you do a 302 redirect to URL b from URL A, the host server implicitly means that URL a may change its mind at any time, re-display its own content or move to another place. Most of the search engines in most cases, when received 302 redirect, generally as long as to crawl the destination URL, that is, url B. If the search engine encounters a 302 turn, 100% of the target URL b crawl, you do not have to worry about URL hijacking. The problem is that sometimes search engines, especially Google, don't always crawl the target URLs.

For example, sometimes a URL is very short, but it does a 302 redirect to the B URL, and the B URL is a long, messy URL, and may even contain some questions such as question marks. Naturally, a Web site is more user-friendly, while the B URL is both ugly and user-friendly. It is likely that Google will still show URL a. Because the search engine ranking algorithm is only a program and not a person, in the face of 302 redirects, and can not be like a person to determine exactly which URL is more appropriate, which resulted in URL hijacking the possibility. That is, an immoral person in his own URL A to do a 302 redirect to your URL B, for some reason, Google search results are still displayed in URL a, but the content of the Web page is your URL B is the content, this is called URL hijacking. Your hard-earned content was stolen by others.

302 redirects caused by URL hijacking phenomenon, has existed for some time. But so far, there seems to be no better solution. In the ongoing data center transformation, the 302 redirect issue is also one of the goals to be addressed. From some search results, URL hijacking has improved, but it has not been completely solved.

301 Differences from 302 redirects

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.