Two signposts split the road ahead: 301 points to a permanent move, 302 to a detour that ends. Match the code to the timeline, not the other way round.
A 301 vs 302 redirect choice comes down to one question: is the old page ever coming back? I have pointed old pages at new homes more than once, and the moves that held their rankings all matched the code to the move.
Pick 301 for a move that never reverses, and 302 for a detour that ends. Google reads that choice as a signal about which address belongs in its results [Google].
In Short
- 301 tells Google the move is permanent, so the new address takes the old one's place in search results.
- 302 tells Google the move is temporary, so the old address stays in search results.
- Server-side redirects beat meta refresh and JavaScript, because Google reads them most reliably [Google].
- Browsers often cache a 301, so a wrong permanent redirect keeps sending visitors to the new address.
- Give every 301 a full year before you remove it, and confirm a long-running 302 in Search Console.
301 moves the address for good and shows the new URL; 302 keeps the old one in place. 307 and 308 keep the request method unchanged.
The Four Codes at a Glance
| Code | Meaning | What Google shows |
|---|---|---|
| 301 | Moved permanently | The new URL |
| 308 | Moved permanently, method kept | The new URL |
| 302 | Found, temporary | The old URL |
| 307 | Temporary redirect, method kept | The old URL |
The redirects guide lists 301 and 308 as permanent codes, and 302 and 307 as temporary ones [Google]. Only the permanent pair signals that the new address should become the canonical one.
Codes 307 and 308 keep the request method unchanged, so a form post stays a form post through the redirect (SEO Neurons, 2026).
Five rules run from the first question to the one-year wait, and each one picks the code by the timeline. Ask whether the page returns, match the code to the page Google should show, and keep a 301 live.
1. Ask Whether the Old Page Comes Back
Start with the future of the old address, not with the code. A page that never returns wants a 301, and a page that returns in weeks wants a 302.
Maintenance pages, seasonal offers, and split tests all end, so they take the temporary code. Domain moves, HTTPS switches, and slug fixes never reverse, so they take the permanent code.
2. Match the Code to the Page Google Should Show
Each code tells Google which address to show in its results. With a 301, the new address almost always takes the old one's place in the results (Ahrefs, 2026).
With a 302, the old address usually stays in the results instead (Ahrefs, 2026). Link signals usually follow the same direction, consolidating at the address Google shows.
Pointing a page at an unrelated target breaks that transfer, since Google may treat the move as a soft 404 (Ahrefs, 2026).
3. Set the Redirect on the Server
Server-side rules carry the highest chance of being read correctly, according to the redirects guide [Google]. Meta refresh and JavaScript can move visitors too, but crawlers read those signals less reliably than server rules [Google].
On Apache, one line in .htaccess sets a permanent redirect, and one line sets a temporary one. NGINX uses a return line in the site config, and most registrars offer forwarding with a code choice (Ahrefs, 2026).
Redirect 301 /old-page.html /new-page.html Redirect 302 /old-page.html /new-page.html
4. Test With a 302 When You Are Not Sure
Browsers often store a 301 in their cache, so visitors keep landing on the new address without asking the server again (Semrush, 2025). Undoing that cached redirect takes clearing caches you do not control, so a wrong 301 can linger for weeks.
Temporary codes rarely get cached, so the browser rechecks the server on every visit (Semrush, 2025). Run the change as a 302 first, then switch it to a 301 once the destination proves right.
5. Keep a 301 Live for at Least a Year
Keep every permanent redirect live as long as possible, generally at least one year, says Google's site-move guide [Google]. Twelve months lets Google shift every signal across, including links on other sites that still use the old address.
Long-running 302s deserve a check, since Google may start treating one as a 301 after a few weeks or months (Ahrefs, 2026). Paste the old address into Search Console's URL Inspection tool to see which treatment Google applies today.
When the Code Is Wrong
Three mistakes cause most redirect trouble, and each one comes from matching the code to the wrong timeline. Short promotions deserve a 302, not a 301, while permanent moves deserve the reverse.
Redirecting every old page to the homepage wastes the same value, since unrelated targets rarely inherit the old links. Our How to Redirect an Aged Domain: 4 Steps to Protect Rankings shows the one-to-one mapping that avoids that waste.
Chains add a third mistake, since each extra hop slows visitors and risks a break. Up to 10 hops will still resolve, but the site-move guide wants every old address sent straight to its final page [Google].
The Decision
Match the code to the timeline, set it on the server, and leave it alone for a year.
Read What Is an Aged Domain for SEO? Benefits, Risks, and How to Check One.
FAQ
Which redirect should I use for a permanent move?
Use a 301. It tells Google the move is permanent, so the new address takes the old one's place in search results.
Which redirect should I use for a temporary page?
Use a 302. It keeps the old address in the results, ready for the day the original page returns.
Does a 301 redirect pass ranking value?
Yes, a 301 passes PageRank to the new address, and the site-move guide says permanent redirects cause no loss in it [Google].
Can I use a 302 for a permanent move?
No. Long-running 302s may end up treated as 301s, but the new address can sit unindexed for months first (Ahrefs, 2026).
How do I check which redirect a page uses?
Run curl -I against the old address and read the first line. The first line names the code, and the Location header names the destination.
Methodology
- I read every page named below in full on 29 November 2026.
- Claims from Google's own pages carry the [Google] label.
- Volume, difficulty, and click-price figures were not checked, so this article quotes none of them.
- Redirect behaviour was checked against live documentation, not from memory.
References
- Google, "Redirects and Google Search." https://developers.google.com/search/docs/crawling-indexing/301-redirects
- Google, "Site Moves and Migrations." https://developers.google.com/search/docs/crawling-indexing/site-move-with-url-changes
- Semrush, "301 vs. 302 Redirect: Which to Choose for SEO and UX." https://www.semrush.com/blog/301-vs-302-redirect/
- Ahrefs, "301 vs. 302 Redirects for SEO: Which Should You Use?" https://ahrefs.com/blog/301-vs-302-redirects/
- SEO Neurons, "Redirects for SEO: 301 vs 302, Redirect Chains, and Common Fixes." https://seoneurons.com/blog/technical-seo/redirects/
- List of Domains, "What Is an Aged Domain for SEO? Benefits, Risks, and How to Check One." https://www.list-of-domains.org/2026/11/what-is-aged-domain-for-seo-benefits.html
- List of Domains, "How to Redirect an Aged Domain: 4 Steps to Protect Rankings." https://www.list-of-domains.org/2026/11/how-to-redirect-an-aged-domain.html



