A 301 redirect tells browsers and search engines that a page has moved permanently. A 302 says the move is temporary. Google treats the two differently: after a permanent redirect it shows the new URL in results, and after a temporary one it keeps showing the old URL. Google on redirects and Google Search
What does Google do with each type?
The difference is about which URL Google treats as the main one, its canonical. A permanent redirect is a signal that the target should be canonical. A temporary redirect is not.
| Type | Google treats it as | Use it when |
|---|---|---|
| 301 Moved Permanently | Permanent | A page, section or domain has moved for good |
| 308 Permanent Redirect | Permanent | Same as 301, where the request method must be kept |
| 302 Found | Temporary | The original URL is coming back |
| 307 Temporary Redirect | Temporary | Same as 302, where the request method must be kept |
| Meta refresh, 0 seconds | Permanent | The server cannot send a redirect |
| Meta refresh, delayed | Temporary | Rarely a good choice |
| JavaScript redirect | Depends on rendering | Nothing else is possible |
Google’s own rule is short: use a permanent redirect “when you’re sure that the redirect won’t be reverted”. A site migration, a merged page or a retired product with a clear replacement all qualify. A maintenance page or a seasonal campaign does not.
Why avoid JavaScript redirects?
Google only sees a JavaScript redirect if it renders the page, and rendering can fail. Google says that in that case it “might never see it”. Use a server-side redirect wherever you control the server, and a meta refresh only where you do not. The JavaScript SEO guide covers rendering in more depth.
What goes wrong with redirects?
- A 302 left in place for a permanent move. The old URL stays in results. Change it to a 301 once the move is final.
- Everything redirected to the homepage. A retired page should point to its closest replacement. Sending unrelated pages to the homepage leaves searchers on a page that does not answer them.
- Chains. Old URL to newer URL to newest URL. Point each old URL straight at the final destination, and update internal links so they skip the redirect entirely.
- Redirects removed too soon. Google gives no fixed duration. Keep redirects for moved pages as long as anyone may still link to or bookmark the old URL.
After any redirect change, inspect a sample of old URLs in Search Console’s URL Inspection tool, and watch the Page indexing report for “Page with redirect”. That status is normal for an old URL; the problem is when the new URL fails to appear. Why a page is not indexed explains each status.
Redirect maps decide most of the outcome of a platform move. The website migration SEO service builds and tests that map before launch, and keyword cannibalization explains when a redirect is the right way to merge two pages.
