HTTP Redirect Chains — 301/302 Loop Detection and SEO Impact
About HTTP Redirect Chains
Diagnose and fix HTTP redirect chain issues including redirect loops, excessive redirects, mixed protocol redirects, and their impact on SEO and page speed. This guide covers everything you need to know about this topic, including common causes, step-by-step solutions, and answers to frequently asked questions.
Here are the key things to understand: A redirect chain occurs when URL A redirects to B, which redirects to C (or more hops). Browsers limit redirect chains to prevent infinite loops — typically 10-20 redirects max. Each redirect adds latency: DNS lookup, TCP connection, and HTTP roundtrip per hop. Search engines follow redirect chains but may not pass full link equity through many hops. Common patterns: HTTP to HTTPS, www to non-www, trailing slash normalization. Understanding these fundamentals will help you diagnose and resolve this issue more effectively.
The most common reasons this occurs include: Multiple redirect rules conflicting with each other (server config + app + CDN). HTTP to HTTPS redirect combined with www to non-www creating a 2+ hop chain. Old URL redirecting to another old URL instead of the final destination. CMS generating redirect rules that chain with server-level redirects. CDN adding its own redirect before the origin server's redirect. Identifying the root cause is the first step toward finding the right solution.
To resolve this, follow these recommended steps: Use curl -IL <url> to trace the full redirect chain and identify all hops. Consolidate redirect rules: ensure each URL redirects directly to the final destination. Order redirect rules correctly: protocol redirect (HTTP to HTTPS) before host redirect. Update internal links to point to the final URL, avoiding redirects entirely. Check for redirect chains after domain migrations using tools like Screaming Frog. Use 301 for permanent redirects and 302 for temporary — 301 passes more SEO value. If these steps do not resolve the issue, consider consulting additional resources or a qualified professional.
This article is part of our HTTP Status Codes collection on Error Codes Wiki. We provide comprehensive, up-to-date information to help you find solutions quickly.
Quick Answer
How many redirects is too many?
More than one redirect is suboptimal. Google recommends a maximum of one redirect. Each hop adds latency and may dilute SEO link equity.
Overview
Diagnose and fix HTTP redirect chain issues including redirect loops, excessive redirects, mixed protocol redirects, and their impact on SEO and page speed.
Key Details
- A redirect chain occurs when URL A redirects to B, which redirects to C (or more hops)
- Browsers limit redirect chains to prevent infinite loops — typically 10-20 redirects max
- Each redirect adds latency: DNS lookup, TCP connection, and HTTP roundtrip per hop
- Search engines follow redirect chains but may not pass full link equity through many hops
- Common patterns: HTTP to HTTPS, www to non-www, trailing slash normalization
Common Causes
- Multiple redirect rules conflicting with each other (server config + app + CDN)
- HTTP to HTTPS redirect combined with www to non-www creating a 2+ hop chain
- Old URL redirecting to another old URL instead of the final destination
- CMS generating redirect rules that chain with server-level redirects
- CDN adding its own redirect before the origin server's redirect
Steps
- 1Use curl -IL <url> to trace the full redirect chain and identify all hops
- 2Consolidate redirect rules: ensure each URL redirects directly to the final destination
- 3Order redirect rules correctly: protocol redirect (HTTP to HTTPS) before host redirect
- 4Update internal links to point to the final URL, avoiding redirects entirely
- 5Check for redirect chains after domain migrations using tools like Screaming Frog
- 6Use 301 for permanent redirects and 302 for temporary — 301 passes more SEO value