What is the difference between 301 and 302 HTTP status?

Source: Internet
Author: User

What is the difference between 301 and 302 HTTP status?

301,302 is the encoding of the HTTP state, which means that a URL has been shifted, except that:

301 redirect:301 Represents a permanent transfer (permanently Moved),

302 redirect:302 represents a temporary transfer (temporarily Moved),

Of course Http Status 200 indicates that no problems occurred.

What are the benefits or problems when using these two transfers?

301 redirection is the best way to search engine friendly after changing the address of a webpage, as long as it is not temporarily moved, it is recommended to use 301来 to do the forwarding.

302 redirects are temporary shifts.

What is the difference between 301 and 302 HTTP status?

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.