What it means
The resource has a new permanent URL, given in the Location header. Clients and search engines should update their links. Browsers cache it aggressively.
Clients may change POST to GET when they follow it. Use 308 if the method must be kept.
Why you're seeing it
- Moving to HTTPS, or between
wwwand the bare domain. - A site restructure or renamed slugs.
- Trailing-slash normalisation.
How to fix it
- Make sure
Locationpoints to the final URL, not to another redirect. - Only use it if you mean it: browsers can cache a
301indefinitely. Test with302first.
Example response
HTTP/1.1 301 Moved Permanently Location: https://athttp.com/404 Content-Length: 0