Status Codes 301 and 302 are different. Status Codes 301 and 302 are different.

Source: Internet
Author: User

Status Codes 301 and 302 are different. Status Codes 301 and 302 are different.
1. Official explanation301 redirect: 301 represents permanent transfer (Permanently Moved) 302 redirect: 302 represents temporary transfer (Temporarily Moved) 301 indicates that the resource of the old address A has been permanently removed (the resource is inaccessible ),While capturing new content, the search engine also switches the old URL to a redirected URL.; 302 indicates that the resource of the old address A is still in (still accessible ),This redirection is temporarily redirected from the old address A to address B. The search engine captures new content and saves the old URL..II. Application scenarios1. 301 use cases:(1) If you do not want to renew your domain name upon expiration (or find a domain name that is more suitable for your website), you need to change the domain name. (2) domain names without www are not included in the search results of the search engine, at this time, we can use 301 redirection to tell the search engine which domain is our target. (3) The space server is unstable.2.302 Use CasesWhen a website or webpage is temporarily moved to a new location within 24-48 hours, 302 redirection is required.Iii. SEOTry to use 301 redirection. 302 Status Code involvedWebsite hijacking: A 302 jump from website A (poor website) to website B (top search ranking). Sometimes the search engine uses the content of website B, however, the address of website A is included. Without knowing it, website B contributes to website A, and website A ranks first.

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.