Path: blob/main/files/en-us/web/http/status/301/index.md
6552 views
------{{HTTPSidebar}}
The HyperText Transfer Protocol (HTTP) 301 Moved Permanently redirect status response code indicates that the requested resource has been definitively moved to the URL given by the {{HTTPHeader("Location")}} headers. A browser redirects to the new URL and search engines update their links to the resource.
Note: Although the specification requires the method and the body to remain unchanged when the redirection is performed, not all user-agents meet this requirement. Use the
301code only as a response for {{HTTPMethod("GET")}} or {{HTTPMethod("HEAD")}} methods and use the {{HTTPStatus("308", "308 Permanent Redirect")}} for {{HTTPMethod("POST")}} methods instead, as the method change is explicitly prohibited with this status.
Status
Example
Client request
Server response
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
{{HTTPStatus("308", "308 Permanent Redirect")}}, the equivalent of this status code where the method used never changes.
{{HTTPStatus("302", "302 Found")}}, a temporary redirect