Redirect Chains and Loops: How to Find and Fix Them (2026)
How to fix redirect chains and loops: find them in a crawl, point every link and redirect at the final URL in one 301, and stop ERR_TOO_MANY_REDIRECTS for good.
Kazi Khalid Hasan Tamim · BugViso Team
16 min read
A redirect chain is a URL that reaches its final page only after two or more redirects, and a redirect loop is a chain that never ends. Each extra hop adds a round trip for users and a request for Googlebot, and a loop ends in a browser error such as ERR_TOO_MANY_REDIRECTS.
To fix redirect chains and loops, point every old URL straight at its final destination in a single 301. For a comparison of tools that trace every hop, see the best redirect checker tools.
Uncontrolled redirect chains and circular redirect loops are among the most overlooked performance and SEO bottlenecks. They accumulate quietly across CMS migrations, SSL upgrades, trailing slash changes and marketing campaign updates: in our test of website migration SEO tools, 48% of redirected old URLs from 16 moved domains needed two or more hops.
Most chains are leftovers from earlier moves, which is why the website migration SEO checklist starts by fixing old redirects.
What Are Redirect Chains and Loops? RFC 9110 and Googlebot Limits
HTTP redirection is defined in IETF RFC 9110 HTTP Semantics. It instructs a client (a browser or search engine crawler) to fetch a resource from an alternate URL declared in the Location response header.
+-------------------------------------------------------------------------+
| REDIRECT CHAINS VS REDIRECT LOOPS |
| |
| 1. REDIRECT CHAIN (Multi-Hop Linear Sequence): |
| [URL A] --(301)--> [URL B] --(301)--> [URL C] --(301)--> [URL D (200)] |
| * 3 separate network round-trips before the final payload arrives! |
| |
| 2. REDIRECT LOOP (Circular Deadlock): |
| [URL A] --(301)--> [URL B] --(301)--> [URL A] |
| * Browser crashes with `ERR_TOO_MANY_REDIRECTS`! |
+-------------------------------------------------------------------------+According to Google Search Central's redirects documentation, Googlebot will follow up to 5 redirect hops in a single crawl attempt.
If a redirect sequence exceeds 5 hops, Googlebot aborts the request, marks the URL as a crawl error, and stops following downstream link equity. Even within the 5-hop allowance, every additional hop adds latency and increases the risk of signal degradation.
The 4 Hidden Costs of Multi-Hop Redirect Chains
A single 301 redirect is standard practice for a permanently moved page. Chaining several redirects together hurts performance, crawl efficiency and search rankings.
| Damage Vector | Technical Mechanism | Impact on Site |
|---|---|---|
| TTFB & Latency Inflation | Additional DNS, TLS, & HTTP round-trips | Page load delayed by 400ms - 1,800ms |
| Crawl Budget Waste | Bot consumes multiple requests per page | Fewer pages crawled and indexed per day |
| Link Equity & Signal Dilution | Fragmented PageRank & canonical confusion | Lower ranking power on destination URL |
| Mobile User Drops | Cellular radio latency amplifies wait time | Surging bounce rates and lost conversions |
1. Severe Latency & TTFB Inflation
Every hop in a redirect chain requires an independent HTTP request and response cycle. If a user connects over a mobile network with 150ms round-trip time (RTT), a 4-hop chain introduces over 600ms to 1,200ms of pure idle waiting time before the browser receives a single byte of HTML.
To diagnose how backend response delays compound this latency, review our guide on how to reduce Time to First Byte (TTFB).
2. Crawl Budget Exhaustion
Search engine crawlers allocate a finite number of requests per day to your domain. If Googlebot spends 4 requests traversing a single chained URL (A $\rightarrow$ B $\rightarrow$ C $\rightarrow$ D), it has 3 fewer requests available to discover new products or update existing search snippets.
For an in-depth analysis of crawler capacity, read our guide on crawl budget explained: stop wasting Googlebot's time.
The Anatomy of a Modern 5-Hop Redirect Chain
Redirect chains rarely occur from a single deliberate configuration. Instead, they accumulate layer by layer over years of technological upgrades, protocol changes, and content reorganizations.
How A 5-Hop Redirect Chain Forms Over Time
- Hop 1: Insecure Protocol to Secure Protocol
http://example.com/shoes- --[301 Redirect]→
https://example.com/shoes
- Hop 2: Hostname Normalization (Non-WWW to WWW)
https://example.com/shoes- --[301 Redirect]→
https://www.example.com/shoes
- Hop 3: Trailing Slash Normalization
https://www.example.com/shoes- --[301 Redirect]→
https://www.example.com/shoes/
- Hop 4: Historical Rebrand / Category Migration
https://www.example.com/shoes/- --[301 Redirect]→
https://www.example.com/footwear/
- Hop 5: Slug Simplification / Product Restructure
https://www.example.com/footwear/- --[301 Redirect]→
https://www.example.com/shop/footwear/
- FINAL DESTINATION (200 OK):
https://www.example.com/shop/footwear/
Flattening the Chain: The One-Hop Rule
The objective of redirect optimization is flattening: every historical URL must point directly to the final active destination in a single, direct 301 hop:
$$\text{URL A} \xrightarrow{301} \text{Final URL D}$$ $$\text{URL B} \xrightarrow{301} \text{Final URL D}$$ $$\text{URL C} \xrightarrow{301} \text{Final URL D}$$
Strategy 1: How to Fix Redirect Chains on the Server (Nginx and Apache)
Consolidate protocol, hostname, trailing slash and path redirects at the web server or edge CDN level. That removes intermediate hops before requests reach your application code.
On Cloudflare, the consolidation can live in a single Worker; our guide to edge SEO with Cloudflare Workers shows production redirect patterns at the CDN layer.
Server-Side Redirect Consolidation
- BAD (Sequential Hops):
- http://site.com/old -(Hop 1)-> https://site.com/old
- -(Hop 2)-> https://www.site.com/old
- -(Hop 3)-> https://www.site.com/new/
- GOOD (Consolidated Single Hop):
- http://site.com/old -(Single Hop 301)-> https://www.site.com/new/
Consolidated Nginx Configuration Example
Configure Nginx server blocks to resolve protocol (HTTP to HTTPS) and domain canonicalization (non-WWW to WWW) in a single step:
# 1. Catch-all HTTP server block: Redirects directly to Canonical HTTPS WWW
server {
listen 80;
listen [::]:80;
server_name example.com www.example.com;
# Returns single 301 redirect directly to secure canonical destination
return 301 https://www.example.com$request_uri;
}
# 2. Non-WWW HTTPS server block: Redirects directly to Canonical HTTPS WWW
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name example.com;
ssl_certificate /etc/ssl/certs/example.com.crt;
ssl_certificate_key /etc/ssl/private/example.com.key;
return 301 https://www.example.com$request_uri;
}
# 3. Main Canonical Server Block
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name www.example.com;
# Direct 1-hop path mapping for legacy migrations
location = /old-slug {
return 301 https://www.example.com/new-slug/;
}
}Strategy 2: Updating Internal Links (The Root Cause Solution)
Server-side redirect flattening is essential for external backlinks, but internal links should never trigger a redirect. In our check of 17,435 internal links on 219 homepages, internal links that redirect outnumbered broken ones about nine to one. On a large site, a broken and outbound link checker that crawls every page is the only practical way to find both. To confirm the external backlinks pointing at moved pages, use one of the best backlink checker tools.
This pattern is covered in our guide to fixing broken and redirecting internal links.
If your navigation header, footer, or body copy links to an old redirected URL (<a href="/shoes">), every user click and crawler visit forces the server to process a redirect.
Internal Link Hygiene Comparison
Flawed architecture:
- Navigation menu:
<a href="/about-us">. - The server executes a 301 redirect to
/about/. - 100% of internal clicks suffer unnecessary redirect latency.
Clean architecture:
- Navigation menu:
<a href="/about/">. - The server returns 200 OK immediately with zero hops.
How to Fix Internal Links:
- Run a site-wide crawl to extract all internal hyperlinks returning 3xx status codes.
- Update your CMS database, navigation components, and template files to point directly to the final 200 OK canonical URL.
- Ensure trailing slashes, HTTPS protocols, and canonical domains are consistently formatted in all internal
hrefattributes.
Strategy 3: Diagnosing and Breaking Infinite Redirect Loops
A redirect loop occurs when two or more conflicting server rules or CMS configurations forward requests back to each other in an infinite cycle.
| Root Cause | Technical Mechanism |
|---|---|
| Cloudflare "Flexible SSL" Misconfiguration | Cloudflare talks to origin on HTTP:80; Origin redirects to HTTPS -> Loop! |
| Trailing Slash Conflicts | Nginx strips slash (/page); CMS appends slash (/page/) -> Loop! |
| Conflicting Regex Rewrites | Rule A rewrites X to Y; Rule B rewrites Y to X -> Loop! |
Fixing the Cloudflare "Flexible SSL" Loop
The most common cause of ERR_TOO_MANY_REDIRECTS on modern websites involves Cloudflare SSL settings:
- When Cloudflare is set to Flexible SSL, Cloudflare communicates with your origin server over plain HTTP on port 80.
- Your origin server has an Nginx/Apache rule that automatically redirects all incoming HTTP traffic to HTTPS.
- When the browser follows the redirect to HTTPS, Cloudflare receives the request and again connects to the origin on HTTP port 80.
- The Fix: Change your Cloudflare SSL/TLS encryption mode from Flexible to Full (Strict) and ensure your origin server has a valid SSL certificate installed.
Strategy 4: Sitemap and Canonical Hygiene for Redirects
An XML sitemap must only contain live, indexable 200 OK canonical URLs. Submitting redirected URLs in a sitemap forces search engines to crawl through unnecessary hops.
Sitemap & Canonical Alignment
- INCORRECT:
- Sitemap URL:
https://example.com/old-page(Returns 301 Redirect) - Canonical Tag:
<link rel="canonical" href="https://example.com/old-page" /> - CORRECT:
- Sitemap URL:
https://example.com/new-page(Returns 200 OK) - Canonical Tag:
<link rel="canonical" href="https://example.com/new-page" />
To align your canonical declarations with direct 200 OK destinations, read our guide on how to fix canonical tag problems.
How BugViso Finds Redirecting Links
Tracing redirect chains by hand across thousands of pages is impractical, so use a crawl to find the links that point at them.
A BugViso scan checks the links it finds on your pages:
- Redirect hops: the link checker follows redirects and records each hop, so a link that redirects shows up in the report rather than passing as healthy.
- Source pages: the internal link graph shows which pages link to the redirecting or broken URLs, so you can update the links at the source.
- Sitemap and host checks: it reads
sitemap.xmland flags a sitemap that lists URLs on a host that itself redirects, for example a non-www host redirecting to www. - Fix list: findings are ranked, with AI-written fixes, in the report and the branded PDF.
BugViso does not report total hop latency or run a dedicated loop detector, so trace a specific chain with curl -IL and read each Location header. You can see the related checks on the technical SEO audit page.
Common Mistakes When Handling Redirects
Avoid these frequent engineering traps when managing redirection rules:
| Common Mistake | Consequence |
|---|---|
| Using 302 for Moved Pages | Search engines do not pass PageRank |
| Chaining New on Old Rules | Chains grow to 4+ hops over time |
| Blanket 404 to Home 301s | Google converts redirects to Soft 404s |
| Leaving 301s in Sitemaps | Wastes crawler requests on dead hops |
1. Using 302 Temporary Redirects for Permanent Moves
A 302 Found status code indicates that the relocation is temporary. Search engines keep indexing the old URL and don't transfer full backlink authority to the destination.
Always use 301 Moved Permanently (or 308 Permanent Redirect) for permanent URL migrations.
2. Layering New Redirects on Top of Legacy Chains
When launching a site redesign, developers often write new rules mapping Version 2 URLs to Version 3 URLs without updating the legacy Version 1 $\rightarrow$ Version 2 rules.
Always flatten your entire historical redirect database so all legacy URLs point directly to current Version 3 endpoints.
To resolve related crawl issues in Google Search Console, review our step-by-step guide on how to fix crawl errors in Google Search Console.
Frequently Asked Questions About Redirect Chains
These answers cover the redirect questions readers ask most.
How many redirect hops will Googlebot follow?
Googlebot will follow up to 5 redirect hops in a single crawl attempt before aborting the request and flagging a redirect error. However, best practice is maintaining a strict 1-hop rule (URL A $\rightarrow$ Final Destination URL) to eliminate latency and preserve link equity.
Do 301 redirects pass 100% of PageRank?
Yes. Google has officially confirmed that 301 permanent redirects pass full PageRank without penalty. However, complex multi-hop redirect chains increase the probability of canonical confusion, timeouts, or crawler drop-offs that prevent link signals from transferring properly.
What is the difference between a 301 and a 308 redirect?
Both status codes represent permanent redirects. However, a 301 Moved Permanently allows clients to change the HTTP request method (e.g., converting a POST request to a GET request), whereas a 308 Permanent Redirect explicitly requires the client to preserve the original HTTP method (e.g., maintaining POST data).
How do redirect chains impact Core Web Vitals?
Redirect chains directly inflate Time to First Byte (TTFB), which cascades into delayed First Contentful Paint (FCP) and Largest Contentful Paint (LCP). Every additional redirect hop adds round-trip network time before the browser can begin downloading stylesheets and hero assets.
How do I fix an ERR_TOO_MANY_REDIRECTS error on WordPress?
This error is usually caused by conflicting site URL settings in wp-config.php (e.g., HTTP vs HTTPS mismatch), conflicting caching plugins, or Cloudflare Flexible SSL loops. Verify that WP_HOME and WP_SITEURL match your exact HTTPS canonical domain and ensure your edge SSL mode is set to "Full (Strict)".
Summary and Action Plan
Eliminating redirect chains and loops is essential for web performance and technical SEO. Four actions cover it:
- Flatten historical redirect maps so all legacy URLs point directly to final destinations in a single 301 hop.
- Update internal links to remove intermediate hops.
- Resolve conflicting trailing slash and SSL rules.
- Keep XML sitemaps populated only with 200 OK endpoints.
To find the internal links that point at redirects or broken URLs across your whole site, sign in and run a BugViso site scan.
Written by
Kazi Khalid Hasan Tamim · BugViso Team
Kazi writes BugViso’s guides on website audits, Core Web Vitals, technical SEO, accessibility and AI search. The data in them comes from audits BugViso runs in a real Chromium browser, including our 219-site study of website health.
Summarise with AI
Open this guide in your assistant.
Follow BugViso
New guides and audit data as we publish them.
AI visibility tracker
Is your brand in AI answers?
See how often AI assistants mention you, cite your site and rank you against your competitors.
- ChatGPT
- Gemini
- Perplexity
- Claude
- AI Overviews
See where your site stands
Run a free BugViso audit for SEO, speed, accessibility and AI search readiness — with fixes you can ship today.