301 Redirect

A 301 redirect is a web server function Where an Old url can be redirected into New Url. 301 redirect is a "Permanent" redirect status indicating that the resource has moved permanently. A 301 redirect is used when an inbound link particular to a reference page that has been permanently moved to a different location of a web page.
 
The HTTP response status code 301 Moved Permanently is used for permanent URL redirection, meaning current links or records using the URL that the response is received for should be updated. The new URL should be provided in the Location field included with the response. The 301 redirect is considered a best practice for upgrading users from HTTP to HTTPS.[1] RFC 2616 states that:

If a client has link-editing capabilities, it should update all references to the Request URL.
The response is cachable.[2]
Unless the request method was HEAD, the entity should contain a small hypertext note with a hyperlink to the new URL(s).
If the 301 status code is received in response to a request of any type other than GET or HEAD, the client must ask the user before redirecting.
Contents [hide]
1 Example
1.1 Search engines
2 See also
3 References
 
Last edited:
Back
Top