Redirects: 301, 302, 307 and 308 explained

Redirects: 301, 302, 307 and 308 explained

A redirect sends users and search engines from one URL to another. The status code tells search engines whether the move is permanent or temporary.

Status codes

CodeTypeUse when
301PermanentA page has moved for good
308Permanent, keeps methodAs 301, keeps POST requests
302TemporaryShort-term changes, A/B tests
307Temporary, keeps methodAs 302, keeps POST requests

For SEO, 301 and 308 consolidate signals to the new URL.

Best practice

  • Redirect to the most relevant equivalent, not the home page.
  • Avoid chains and loops: point old URLs straight to the final URL.
  • Update internal links instead of relying on redirects.
  • Keep redirects for at least a year, ideally permanently.
  • Map every old URL before a migration.

Tools

Redirection plugin in WordPress, server rules, or your CDN. Find chains with Screaming Frog.

Frequently asked questions

What is a 301 redirect?

A permanent redirect that sends users and search engines to a new URL.

How long should I keep redirects?

At least a year, ideally permanently.

Read also

Sources

  1. Google Search Central, Redirects and Google Search: developers.google.com/search/docs/crawling-indexing/301-redirects

More about Marius Vestlien Hansen →

Read next

More articles

All articles
Next step

Get in touch for a coffee and a chat about how I can strengthen your business

Book a coffee chat