301 vs 302 Redirects: Which One to Use and What Google Says
Google's help page on redirects explains how permanent and temporary redirects change which address appears in search. Which status codes count as which, the right choice for common jobs, why server-side comes first, the WordPress defaults we checked, and how to test a redirect.
zabil
When you rename a page, move to a new domain or merge two websites, you will usually be told to add a 301 redirect. Google’s help page “Redirects and Google Search” (last updated 14 April 2026) explains what that does, and why the choice between a permanent and a temporary redirect decides which address shows up in search results. This guide turns the page into plain steps, as of 14 November 2026.
What a redirect does
Google describes redirecting as “the practice of resolving an existing URL to a different one, effectively telling your visitors and Google Search that a page has a new location.” It lists four situations where redirects are useful:
- You have moved your site to a new domain.
- People reach your site through several different URLs, such as
https://example.com/homeorhttps://www.example.com. Google says to pick one as your preferred (canonical) destination and redirect the others to it. - You are merging two websites and want links to outdated URLs to reach the right pages.
- You removed a page and want to send users to a new page.
The short answer: permanent or temporary
Visitors generally will not notice the difference, but Google does. Its page says that “Choosing a redirect depends on how long you expect the redirect will be in place and what page you want Google Search to show in search results”, and gives a two-line summary:
- Permanent redirects: “Show the new redirect target in search results.”
- Temporary redirects: “Show the source page in search results.”
The detail is in how Google’s systems read each type. For a permanent redirect, “the indexing pipeline uses the redirect as a signal that the redirect target should be canonical.” For a temporary one, the pipeline “doesn’t use the redirect as a signal that the redirect target should be canonical”, although “The target page might still be indexed if other canonicalization signals are present.” Google’s rule for the permanent kind is “Use permanent redirects when you’re sure that the redirect won’t be reverted.”
Which status codes count as which
Google lists these under each heading:
- Permanent: HTTP 301 (moved permanently), HTTP 308, a meta refresh or HTTP refresh of 0 seconds, a JavaScript location change, and what it calls a crypto redirect.
- Temporary: HTTP 302 (found), HTTP 303 (see other), HTTP 307 (temporary redirect), and a meta refresh or HTTP refresh of more than 0 seconds.
Two details catch people out. A meta refresh that fires instantly is read as permanent, while “Google Search interprets delayed meta refresh redirects as temporary redirects.” And the list is “ordered by how likely Google is able to interpret correctly”, with the note that “a server side redirect has the highest chance of being interpreted correctly by Google.”
Which one to use for common jobs
This section is our reading of Google’s rule, applied to jobs a small business meets:
- Changing a page’s address, merging pages or moving domain: use a permanent redirect. Google says: “If you need to change the URL of a page as it is shown in search engine results, we recommend that you use a permanent server-side redirect whenever possible.”
- Choosing www or non-www, or http or https: pick one version and send the others to it with permanent redirects, as in Google’s home page example above.
- A service is temporarily unavailable: use a temporary redirect. Google’s example is sending users “to a page that explains what’s happening, without compromising the original URL in search results.” For a whole site that is offline, see our guide to taking a website offline with a 503.
- A page was removed and nothing replaces it: a redirect needs somewhere sensible to go. If there is no new page, read whether 404 errors hurt SEO first.
Why server-side redirects come first
A server-side redirect is set in your server configuration or by a script. Google’s page shows examples for Apache, NGINX and PHP, and says that if you use a platform like Blogger or Shopify, “the platform may already have built-in redirect solutions.”
A JavaScript redirect is the weakest option. Google says to “Only use JavaScript redirects if you can’t do server-side or meta refresh redirects”, because “rendering may fail for various reasons. This means that if you set a JavaScript redirect, Google might never see it if rendering of the content failed.” The last resort on the list is the crypto redirect, a plain “We moved!” link. Google’s advice: “Don’t rely on crypto redirects for letting search engines know that your content has moved unless you have no other choice.”
Redirects on a WordPress site
We checked the WordPress 7.1.4 source on our own server rather than rely on blog posts:
- The core function
wp_redirect()has a default status of 302. A snippet that calls it without a status code therefore sends a temporary redirect. - WordPress’s own canonical redirects, such as sending a request to the preferred version of a URL, pass 301, and so does the redirect from an old post slug to the new one. Our guide to SEO-friendly URLs and slugs explains why renaming a page slug is different from renaming a post slug.
- The Rank Math plugin has a redirections module. In version 1.0.280, the code that builds a new redirection defaults to header code 301. Check the type on the screen before you save, because plugin versions change.
If you ask a developer to add redirects through code, ask which status they are sending.
Why the old address may still appear
After a permanent redirect, Google “keeps track of both the redirect source (the old URL) and the redirect target (the new URL)”, and the other URL becomes an alternate name of the canonical one. Alternate names “may appear in search results when a user’s query hints that they might trust the old URL more.”
Google gives a domain move as the example: “it’s very likely that Google will continue to occasionally show the old URLs in the results, even though the new URLs are already indexed.” Its reassurance: “This is normal and as users get used to the new domain name, the alternate names will fade away without you doing anything.” If you are weighing a new domain, see our guide to choosing between .com and .id, and for a redesign that changes URLs, redesigning a website without losing SEO.
Common mistakes
- A temporary redirect for a permanent move. Google says temporary redirects show the source page, so the old address can stay in results, which is the opposite of what a move needs.
- A delayed meta refresh as a “permanent” fix. Google reads any delay above 0 seconds as temporary.
- JavaScript as the only redirect. If rendering fails, Google may never see it.
- Sending people to the wrong page. A redirect that loops or lands somewhere unrelated helps nobody, whatever its status code.
How to check a redirect
- Open the old address in a private window and note where you land.
- Run
curl -Ifollowed by the old address. The first line shows the status code (301, 302 and so on) and thelocationheader shows the destination. - Repeat for the www and http versions of your home page.
- If something still looks wrong after a few weeks, check our guide on why a website is not showing on Google.
If you are planning a domain change or a redesign and want the redirect list reviewed before launch, tell us about your business and we will go through it with you.
Sources: Google Search Central, Redirects and Google Search (last updated 14 April 2026); WordPress 7.1.4 core source (wp-includes/pluggable.php, canonical.php, query.php) and Rank Math 1.0.280 (class-redirection.php), checked 14 November 2026.
Related services
Keep reading
Related articles.
SEO
Updating Old Blog Posts for SEO: What Google Says About Publish Dates, Last Updated Lines and Fake Freshness
What Google says about byline dates, visible Last updated lines, dateModified and sitemap lastmod, why changing a date on an unchanged post is a…
SEO
FAQ Rich Results Are Gone From Google: Is FAQ Schema Still Worth Adding to Your WordPress Site?
Google stopped showing FAQ rich results on 7 May 2026. What Google has said since 2023, why Search Console FAQ impressions dropped, whether to…
SEO
Video SEO for a Small Business Website: Watch Pages, Thumbnails and Why Your Embedded Video May Not Be Indexed
What Google's video documentation says in plain terms: why a blog post with an embedded video is not a watch page, how YouTube embeds,…