Http status code: 301, 302 redirection, 302 redirectionConcept
301 Moved Permanently the requested resource has been Permanently Moved to a new location, and in the future, any reference to this resource should use one of several Uris returned by
Official statementlist of http status codes301 moved permanently#this and all Future requests should be directed to the given uri. [23]302 found#this is an example of industry practice contradicting the standard. The HTTP/1.0 specification (rfc 19
Problem description:
Mgzhenhong users mentioned this problem And provides an example:
1. Web. config enables Forms authentication.
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
> Website redirection becomes a curse Business.com is the largest commercial search engine and category on the Internet. It is well known for providing business information professionally, including nearly 0.19 million web pages. If you search in
In the server 301 and 302 for the search engine is a permanent jump new address, one is to tell you temporarily to a new address, then we in PHP How to implement the 301 permanent Redirect and 302 temporary redirect, let's look at the method
HTTP State code (HTTP status codes)Some of the common status codes are:First, 1 startA 1xx (temporary response) represents a temporary response and requires a status code for the requester to continue the operation. Code description100 (continued)
In the server, 301 and 302 are a permanent jump address for the search engine, and one is to tell you that a new address has arrived, so how can we implement 301 permanent redirection and 302 temporary redirection in php? let's take a look at the
LinuxWhen the curl command is used in the system, sometimes some URLs jump to the new URL, namely 3 XXredirection in HTTP, redirection, suchHTTP 302).
$curl -s -I $URL > log
In the returned message, the Location field indicates the new URL.
$cat log
HTTP common status code 200 301 302 404 500Some common Status codes of HTTP Status Code are: Status codes starting with 1 and starting with 1xx (temporary response) that indicate a temporary response and require the requester to continue the
HTTP common status codes 200 301 302 404, 302404
HTTP Status Code)
Some common status codes are:
Start with 1
1xx indicates the status code of the temporary response and requires the requester to continue the operation. Code Description
100
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.