Free tools that run locally in your browser with zero data storage.
Tyzo
Technical SEO Guide

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.

8 min read
Intermediate Level
Updated for 2024

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.

How Redirects Work:
User clicks: https://old-website.com/page โ†“ Server returns: 301 or 302 status code โ†“ Browser goes to: https://new-website.com/page
50%
of link equity passed through 301 redirects
100%
of users don't notice a proper redirect
Why Redirects Matter:

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

301 Moved Permanently

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
301 Redirect Example:

You move your blog from "oldsite.com/blog" to "newsite.com/blog" permanently.

HTTP/1.1 301 Moved Permanently Location: https://newsite.com/blog/seo-tips

Result: Search engines transfer ~90-99% of link equity to the new URL and update their indexes.

SEO Impact of 301 Redirects:
  • โœ“ 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

302 Found (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)
302 Redirect Example:

Your checkout page is temporarily down for maintenance. You redirect to a maintenance page.

HTTP/1.1 302 Found Location: https://example.com/maintenance.html

Result: Search engines keep the original URL in their index and don't transfer link equity.

Important:

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.
For Most Websites:

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

90-99%
Link equity passed by 301
0-50%
Link equity passed by 302 (varies by search engine)

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.
Speed Impact:

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.

Redirect Time Impact:

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

Use 301 for:
  • โœ“ Domain name changes
  • โœ“ Moving from HTTP to HTTPS
  • โœ“ Changing URL structure permanently
  • โœ“ WWW to non-WWW (permanent choice)
  • โœ“ Permanently deleted pages
  • โœ“ Merging multiple pages
Use 302 for:
  • โœ“ A/B testing variations
  • โœ“ Site maintenance (temporary)
  • โœ“ Seasonal promotions
  • โœ“ Flash sales/discounts
  • โœ“ Temporary device detection
  • โœ“ Content you plan to restore
Simple Rule of Thumb:

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)

# 301 redirect single page Redirect 301 /old-page https://example.com/new-page # 301 redirect entire domain RewriteEngine on RewriteCond %{HTTP_HOST} ^old-domain\.com [NC] RewriteRule ^(.*)$ https://new-domain.com/$1 [L,R=301] # Force HTTPS RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]

Method 2: Nginx Servers

# 301 redirect server { listen 80; server_name old-domain.com; return 301 https://new-domain.com$request_uri; }

Method 3: PHP Redirect

<?php header("HTTP/1.1 301 Moved Permanently"); header("Location: https://example.com/new-page"); exit(); ?>

Method 4: JavaScript (Not Recommended for SEO)

<script> window.location.href = "https://example.com/new-page"; </script>
Avoid JavaScript Redirects 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.

โŒ Redirect Chain (BROKEN):
https://old-site.com/page โ†“ 301 https://old-site.com/new-page โ†“ 301 https://new-site.com/page โ†“ 301 https://new-site.com/page/

Problems: Slower load time, lost link equity, poor user experience.

โœ… Single Redirect (FIXED):
https://old-site.com/page โ†“ 301 https://new-site.com/page/

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.

โŒ Redirect Loop (BROKEN): https://example.com/page โ†“ redirects to https://example.com/page/ โ†“ redirects to https://example.com/page (infinite loop - page will never load)
Check for Redirect Issues:

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

Additional Redirect Tools

๐Ÿ” Screaming Frog SEO Spider

Find all redirects on your entire site with this free crawling tool

๐ŸŒ Redirect Path (Chrome Extension)

See redirect status codes as you browse any website

๐Ÿ“Š Google Search Console

See crawl errors related to redirects and broken links

โšก GTmetrix

Performance tool that highlights redirect chains slowing your site

Redirect Cheat Sheet

โœ… Best Practices:
  • 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
โŒ Don't:
  • 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

Do 301 redirects hurt SEO?
No, when used correctly, 301 redirects preserve most link equity (90-99%). They are essential for site migrations, URL changes, and HTTPS upgrades. However, avoid redirect chains as they slow down your site.
How much link equity passes through a 301 redirect?
Google has confirmed that 301 redirects pass nearly all PageRank (90-99%). This has improved over the years. For best results, keep redirect chains short (1-2 hops maximum).
How long does a 302 redirect last?
A 302 redirect is temporary by design. It should only be used for short-term changes like A/B testing, maintenance, or seasonal promotions. If the redirect remains for months, search engines may treat it as a 301.
What's the best way to redirect an entire domain?
Use a 301 redirect at the server level (.htaccess for Apache, server block for Nginx). Redirect each page individually (page-to-page) rather than just the homepage to preserve SEO value.
How do I fix a redirect loop?
A redirect loop means URL A โ†’ B and URL B โ†’ A. Check your redirect rules in .htaccess, CMS settings, or CDN configuration. Remove the conflicting rule that causes the loop. Use our Redirect Checker to identify loops.
Do redirects affect mobile SEO differently?
Redirects work the same on mobile. However, mobile users may experience slower load times with redirect chains (mobile networks are often slower). Keep redirects to a minimum for mobile users.

Need to check your redirects?

Use our free Redirect Checker to find redirect chains, loops, and broken redirects on your site.

Try Redirect Checker Complete SEO Guide