Error Codes Wiki

HTTP Redirect Chains — 301/302 Loop Detection and SEO Impact

Warning3xx redirection

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

  1. 1Use curl -IL <url> to trace the full redirect chain and identify all hops
  2. 2Consolidate redirect rules: ensure each URL redirects directly to the final destination
  3. 3Order redirect rules correctly: protocol redirect (HTTP to HTTPS) before host redirect
  4. 4Update internal links to point to the final URL, avoiding redirects entirely
  5. 5Check for redirect chains after domain migrations using tools like Screaming Frog
  6. 6Use 301 for permanent redirects and 302 for temporary — 301 passes more SEO value

Tags

redirect-chain301302redirect-loopseo-redirects

Related Items

More in 3xx Redirection

Frequently Asked Questions

More than one redirect is suboptimal. Google recommends a maximum of one redirect. Each hop adds latency and may dilute SEO link equity.