301 vs 302 Redirects Complete Guide for SEO
Learn the difference between permanent and temporary redirects, and how to use them without hurting your SEO.
What You'll Learn in This Guide
Chapter 1: What Are Redirects?
A redirect is a way to send users and search engines from one URL to a different URL. Redirects are essential when you move content, change domain names, or restructure your website.
Without redirects, users get "404 Not Found" errors. This hurts user experience, wastes link equity, and can drop your search rankings. Redirects preserve your SEO value when URLs change.
Chapter 2: 301 Permanent Redirect
A 301 redirect tells browsers and search engines that a page has permanently moved to a new location.
When to Use 301 Redirects
- Domain changes: Moving from old-domain.com to new-domain.com
- WWW to non-WWW: Redirecting www.example.com to example.com (or vice versa)
- HTTP to HTTPS: Redirecting insecure HTTP to secure HTTPS
- Deleted pages: When you remove a page permanently and want to send users to relevant content
- URL restructuring: Changing your URL structure (e.g., /blog?id=123 to /blog/post-name)
- Merged content: Consolidating multiple pages into one
You move your blog from "oldsite.com/blog" to "newsite.com/blog" permanently.
Result: Search engines transfer ~90-99% of link equity to the new URL and update their indexes.
- โ Transfers 90-99% of PageRank/link equity to the new URL
- โ Search engines update their index to the new URL
- โ Users are seamlessly forwarded without noticing
- โ Preserves backlink value from external sites
Chapter 3: 302 Temporary Redirect
A 302 redirect tells browsers and search engines that a page has temporarily moved to a new location, but will return to the original URL eventually.
When to Use 302 Redirects
- A/B testing: Temporarily sending users to a test version of a page
- Site maintenance: Redirecting users to a maintenance page while you update
- Seasonal promotions: Temporary holiday landing pages
- Flash sales: Limited-time product pages or discounts
- Geolocation: Temporarily redirecting based on user location (with caution)
Your checkout page is temporarily down for maintenance. You redirect to a maintenance page.
Result: Search engines keep the original URL in their index and don't transfer link equity.
Using a 302 for a permanent move (like a domain change) can hurt SEO because search engines won't transfer link equity to the new URL. They'll keep the old URL indexed.
Chapter 4: 307, 308 & Other Status Codes
| Status Code | Meaning | Permanent/Temporary | When to Use |
|---|---|---|---|
| 301 | Moved Permanently | Permanent | Standard permanent redirect, passes link equity |
| 302 | Found | Temporary | Standard temporary redirect, does NOT pass full link equity |
| 307 | Temporary Redirect | Temporary | HTTP/1.1 replacement for 302. Preserves request method (POST stays POST). |
| 308 | Permanent Redirect | Permanent | HTTP/1.1 replacement for 301. Preserves request method. |
| 303 | See Other | Temporary | After form submission, redirect to a thank you page. Always uses GET. |
| 304 | Not Modified | N/A | For caching - tells browser the page hasn't changed. |
You'll only need 301 and 302 redirects. 307 and 308 are modern alternatives but have slightly lower browser support. Stick with 301 and 302 unless you have specific technical requirements.
Chapter 5: How Redirects Affect SEO
Link Equity (PageRank) Transfer
- 301 Redirect: Transfers 90-99% of link equity. Google has confirmed this directly.
- 302 Redirect: Historically passed little to no equity. Today, Google tries to determine intent, but best practice is to use 301 for permanent moves.
- Meta Refresh: Avoid these. They provide poor user experience and pass minimal link equity.
Each redirect adds HTTP request latency. Redirect chains (A โ B โ C โ D) can slow down your site significantly. Keep redirects to 1-2 hops maximum.
No redirect: ~200ms load time
1 redirect: ~400ms (+200ms)
2 redirects: ~600ms (+400ms)
3+ redirects: Significant performance penalty
Chapter 6: When to Use 301 vs 302
- โ Domain name changes
- โ Moving from HTTP to HTTPS
- โ Changing URL structure permanently
- โ WWW to non-WWW (permanent choice)
- โ Permanently deleted pages
- โ Merging multiple pages
- โ A/B testing variations
- โ Site maintenance (temporary)
- โ Seasonal promotions
- โ Flash sales/discounts
- โ Temporary device detection
- โ Content you plan to restore
Ask yourself: "Will this redirect still be here in 6 months?"
If YES โ Use 301 redirect
If NO โ Use 302 redirect
Chapter 7: How to Implement Redirects
Method 1: .htaccess (Apache Servers)
Method 2: Nginx Servers
Method 3: PHP Redirect
Method 4: JavaScript (Not Recommended for SEO)
Search engines may not execute JavaScript redirects reliably. Always use server-side redirects (301/302) whenever possible.
Chapter 8: 10 Redirect Mistakes to Avoid
- โ Using 302 for permanent redirects - Search engines may not transfer link equity to the new URL.
- โ Creating redirect chains - A โ B โ C โ D is slow and loses link equity. Redirect directly: A โ D.
- โ Redirect loops - A โ B โ A creates an infinite loop. Users get "This page isn't working".
- โ Using meta refresh redirects - Poor user experience, minimal SEO value.
- โ Forgetting to update internal links - Update your own site's links to point directly to the final URL.
- โ Not updating your sitemap - Submit the new URLs in your XML sitemap.
- โ 404 pages without redirects - Every deleted page should redirect to relevant content.
- โ Redirecting to irrelevant pages - Sending users to unrelated content hurts user experience and SEO.
- โ Too many redirects on critical pages - Homepage should ideally have zero redirects.
- โ Case sensitivity issues - "/Page" and "/page" are different URLs. Be consistent.
Chapter 9: Redirect Chains & Loops
What is a Redirect Chain?
A redirect chain happens when URL A redirects to URL B, which redirects to URL C, which redirects to URL D. This is bad for performance and SEO.
Problems: Slower load time, lost link equity, poor user experience.
What is a Redirect Loop?
A redirect loop happens when URL A redirects to URL B, and URL B redirects back to URL A. This creates an infinite loop that breaks the page.
Use our Redirect Checker to find redirect chains and loops on your website. Fix them to improve site speed and SEO.
Chapter 10: Redirect Checker Tools
Redirect Checker
Check redirect chains, loops, and status codes for any URL
URL Encoder
Encode special characters in redirect URLs
Additional Redirect Tools
Find all redirects on your entire site with this free crawling tool
See redirect status codes as you browse any website
See crawl errors related to redirects and broken links
Performance tool that highlights redirect chains slowing your site
Redirect Cheat Sheet
- Use 301 for permanent moves
- Use 302 for temporary changes
- Redirect directly (avoid chains)
- Update internal links
- Update XML sitemap
- Use server-side redirects
- Redirect 404 pages to relevant content
- Create redirect chains
- Use meta refresh redirects
- Use 302 for permanent moves
- Redirect to irrelevant pages
- Forget to test redirects
- Create redirect loops
Frequently Asked Questions
Need to check your redirects?
Use our free Redirect Checker to find redirect chains, loops, and broken redirects on your site.