302 jump, 302 jump code

Source: Internet
Author: User

302 jump, 302 jump code

Jump code:

Header ("HTTP/1.1 302 Found"); // This sentence can be omitted

Dheader ("Location: http://www.baidu.com ");
What is 302 redirection? What is the significance?

Hello, I am a professional Q & A of Dezhou Information Network (www.0534x.cn). 302 redirection is a type of website redirection, which is different from 301 redirection. 301 is a permanent URL redirection, 302 is the temporary targeting of the website. 302 redirection or 302 redirection (302 redirect) refers to the status code returned by the host when the browser requests a webpage. The status code 302 indicates that you are temporarily redirected to another website.

What is the difference between 301 and 302 jumps in writing?

301,302 the difference is that: 301 redirect: 301 represents a permanent transfer (Permanently Moved), 302 redirect: 302 represents a temporary transfer (Temporarily Moved), there is no difference in writing, all in the configuration file, set the jump statement to 301 or 302.
 

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.