301 http code
- User
301 http code
- Assistant
The HTTP status code 301 means "Moved Permanently." It indicates that the resource requested by the client has been permanently moved to a new URL. This code is often used when web pages have been relocated, and it instructs browsers and search engines to update their links to the new location.
When a server responds with a 301 status code, it typically includes the new URL in the response header under
Location. This helps clients, including web browsers and search engine crawlers, to automatically redirect to the new URL.Key Points about HTTP 301:
- Permanent: It signifies that the resource has permanently moved to a new location.
- SEO Implications: Search engines will transfer the ranking signals from the old URL to the new one, which helps maintain SEO value.
- Client Behavior: Browsers will usually implement a redirect to the new location when they receive a 301 status code.
Example Response:
Here is an example of how a server might respond to a request with a 301 status code: