Blog · 6 min read

301 vs 302 redirects: which one to use for SEO

Published

301 vs 302 redirects: which one to use for SEO

When you move a page, rename an address or switch to a new domain, you need to send visitors and search engines to the new place. That is a redirect. The two you will meet most often are the 301 and the 302, and choosing the wrong one can quietly cost you search traffic.

This applies to every platform, whether your site runs on WordPress, Shopify, Wix, Squarespace, Webflow or custom code. The codes are part of the web itself, not of any one tool.

The short answer

If you are not sure, you almost certainly want a 301.

What each one tells Google

A 301 says "treat the new address as the real one". Google passes the old page's ranking signals to the new address and, over time, shows the new address in search results. A 302 says "keep the old address, this is only a detour". Google tends to keep the old address indexed, which is wrong if the move is really permanent.

Google says it can eventually treat a long-lasting 302 like a 301, but that is slow and not guaranteed. Do not rely on it.

When to use a 301

When to use a 302 (or 307)

You may also see 307 and 308. They work like 302 and 301, with one extra rule: the visitor's request method (for example a form POST) is kept. For ordinary page links, 301 and 302 are what matter.

How to set up a redirect

Step 1: check what you have now

Paste an address into the redirect checker. It shows each hop, the status code at every step and the final address, so you can see at a glance whether a move is a 301 or a 302.

Step 2: send each old page to its closest match

Point the old address at the new page that covers the same topic. Sending everything to the home page looks like a soft 404 to Google and wastes the old page's value. If there is truly no match, let it return a proper error and see how to build a custom 404 page.

Step 3: avoid chains and loops

Step 4: update everything that points to the old address

Watch out for hidden redirects

If visitors from Google land on an unfamiliar or spammy site while you see your own page normally, your site may carry a malicious redirect. It often hides in .htaccess, a plugin or a theme file. Read how to check if your website is hacked and what website cloaking is.

Common questions

Does a 301 lose ranking power?

Google has said that 301 redirects no longer lose ranking value in the way people used to fear. Keep chains short and point to a relevant page.

Can I use a 302 for a permanent move?

It may work eventually, but it is slower and riskier. Use a 301 when the move is permanent.

How long should I keep a 301?

At least a year. Removing it earlier can bring back errors for people and for search engines that still use the old address.

Do redirects slow my site?

Each hop adds a small delay, so keep them to one. See how to speed up your website.

Free tools for this problem

More guides