A Practical Guide to Redirects and Status Codes
The HTTP responses that tell a browser and a crawler what happened to a URL: it moved, it is gone, it is here.
On this page
The key figures
- 301
- permanent redirect
- 302
- temporary redirect
- 404
- not found
- 410
- gone, a stronger statement than 404
- Chains
- each additional hop costs efficiency and should be collapsed
- Soft 404
- a page returning 200 with no real content
Why this is worth getting right
Redirects preserve the value of URLs that change, and the wrong code — or a chain of them — quietly loses signal and confuses crawlers.
Do this, not that
Do
- Use 301 for permanent moves and 302 only when the move really is temporary
- Redirect to the closest equivalent page rather than to the home page
- Collapse redirect chains to a single hop
- Return a real 404 or 410 for content that is genuinely gone
- Keep redirects in version control and test them
Don’t
- Redirecting everything to the home page
- Chains built up over successive migrations
- Serving a friendly page with a 200 status for missing content
- Removing redirects after a few months while links still point at the old URLs
When to bring in help
Our advice Bring in help during any migration, when redirect chains have accumulated, or when Search Console reports soft 404s at scale.
Where this comes from
- Google Search Central — Redirects and Google Search
- MDN Web Docs — HTTP response status codes
- Google Search Central — Soft 404 errors
The figures and practices above come from the sources listed.
Working on something like this?
We take on SEO Services work for teams who want it done once, properly. Tell us what you are building and we will tell you honestly whether we are the right studio for it. Start a project.
Where to go next
Spotted something wrong? Report an error on this page. We correct on the page and say what changed.