301 Moved Permanently

The resource has a new permanent URL.

3xx · Redirection

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 www and the bare domain.
  • A site restructure or renamed slugs.
  • Trailing-slash normalisation.

How to fix it

  • Make sure Location points to the final URL, not to another redirect.
  • Only use it if you mean it: browsers can cache a 301 indefinitely. Test with 302 first.

Example response

HTTP/1.1 301 Moved Permanently
Location: https://athttp.com/404
Content-Length: 0