Redirects send visitors and Googlebot from one URL to another. Choosing the wrong type is a common mistake when moving a page or a whole site. This guide follows Google’s own documentation on redirects and explains the difference between a permanent and a temporary redirect, the methods Google can read, and what to avoid.
Quick facts
- Permanent redirect: a 301 or 308; Google uses it as a signal that the target should be canonical
- Temporary redirect: a 302, 303 or 307; Google follows it, but the target is not used as a canonical signal
- Most reliable method: a server-side redirect; Google recommends a permanent server-side redirect for a permanent move whenever possible
- Avoid: permanent redirects you might revert, and JavaScript redirects when a server-side redirect is possible
- Last checked: 5 November 2026 against Google Search Central
What is a redirect?
A redirect tells browsers and search engines that a page now lives at a different address. Google’s redirect documentation says you should use redirects when you move domains, merge sites or remove pages.
Permanent vs temporary redirects
| Type | Status codes | What Google does |
|---|---|---|
| Permanent | 301, 308 | Follows the redirect and uses it as a signal that the target should be canonical |
| Temporary | 302, 303, 307 | Follows the redirect, but the target is not used as a canonical signal; it might still be indexed if other signals are present |
Google says to use permanent redirects when you are sure the redirect will not be reverted. Use a temporary redirect when a change is short-term, such as a service outage, so the original URL keeps its search standing.
Which methods does Google understand?
Google lists these methods in the order of how reliably it interprets them:
1. Server-side redirects: the most likely to be interpreted correctly
2. Meta refresh and HTTP Refresh: a 0-second refresh is treated as permanent, and a delayed refresh as temporary
3. JavaScript location redirects: use only if you cannot do server-side or meta refresh redirects, because rendering may fail and Google might never see it
4. Crypto redirects: a visible link to the new page with an explanation; this is not an official redirect and should not be relied on
What happens to the old URL?
Google keeps track of both the old and new URLs. Whether the redirect is permanent or temporary helps it decide which URL is canonical. The other URL becomes an alternate name that can still appear in results for a while. After a domain move, Google says the alternate names fade away as users adjust.
Best practices
- Choose one preferred URL and redirect the other versions to it
- Check whether your platform has built-in redirect tools before you add code
- Make sure a redirect points to a relevant page, not just the home page
- Test the redirect after you set it up
Duplicate URLs can also be handled with a canonical tag; see our beginner’s guide to canonical tags in WordPress. If a page you moved is missing from Google, our guide on checking whether a page is indexed explains how to find out.
Frequently asked questions
Is a 301 or 302 redirect better for SEO?
Neither is better in general. Use a 301 or 308 when the move is permanent, and a 302 or 307 when it is temporary.
Does Google follow 302 redirects?
Yes. It follows them, but does not use the target as a canonical signal.
Should I use a JavaScript redirect?
Only if you cannot use a server-side or meta refresh redirect. Google says it might never see a JavaScript redirect if rendering fails.
How long should I keep a redirect?
The Google page we checked does not give a time. Keep it for as long as the old URL might still receive visits or links.



