Skip to content
RU

ERR_TOO_MANY_REDIRECTS: Fixing the Loop

Key idea:

ERR_TOO_MANY_REDIRECTS (Chrome) / "Too many redirects" (Firefox) — browser stopped following redirects after 10+ hops. Causes: server block A redirects to HTTPS, server block B (HTTPS) redirects back to HTTP due to wrong detection. Or WordPress + Cloudflare Flexible SSL. Fix: find loop origin via curl -ILk.

This error blocks HTTPS access. Below: causes, fixes, working config, FAQ.

Check the redirect chain →

Common Causes

  • HTTP → HTTPS → HTTP loop (CDN treats connection as HTTP)
  • Cloudflare Flexible SSL (origin HTTP, edge HTTPS) + HTTPS redirect in WordPress
  • WordPress/Bitrix: siteurl vs home mismatch — auto-redirect
  • www → non-www in rule A, non-www → www in rule B
  • HSTS client cache + stale reverse-direction redirect rule

Step-by-Step Fix

  1. In shell: curl -ILk https://example.com — see chain and loop point
  2. Cloudflare: switch SSL/TLS encryption mode to Full (not Flexible)
  3. WordPress: check wp_options → siteurl + home — must match
  4. Clear HSTS cache: chrome://net-internals/#hsts → Delete domain
  5. Bitrix: settings.php → "s1" → "server_name" — single canonical domain

Check the redirect chain →

Related SSL Errors

TL;DR: How to Fix ERR_TOO_MANY_REDIRECTS

The ERR_TOO_MANY_REDIRECTS error occurs when a website enters a redirect loop, causing the browser to fail in loading the page. To resolve this, check your server configuration for conflicting redirect rules, clear browser cache, and ensure that your website's URL settings are correctly configured in CMS or server settings. For instance, verify the .htaccess file or Nginx configuration for any misconfigured directives.

Understanding Redirect Loops

Redirect loops happen when a URL redirects to another URL that eventually redirects back to the original URL, creating an infinite loop. This can stem from various sources, including:

  • Server Configuration: Incorrectly configured web servers, such as Apache or Nginx, can create redirect loops. For example, if you have both www and non-www versions of your site, improper handling can lead to a loop.
  • CMS Settings: Content Management Systems (CMS) like WordPress might have redirect settings that conflict with server settings. For instance, if your WordPress Address (URL) and Site Address (URL) differ and are incorrectly set, it can trigger this error.
  • Termination Mismatch at a CDN: with Cloudflare Flexible SSL the edge speaks HTTPS while the origin is reached over plain HTTP, so the origin keeps redirecting to HTTPS and the edge keeps arriving over HTTP. The certificate is not the cause — the mismatch is where TLS terminates. Switching the mode to Full ends the loop.

To diagnose a redirect loop, you can use tools like Redirect Checker or browser developer tools to trace the redirect path. Analyzing the HTTP response codes can help pinpoint the issue.

Fixing ERR_TOO_MANY_REDIRECTS: Practical Steps

To fix the ERR_TOO_MANY_REDIRECTS error, follow these practical steps:

  1. Check .htaccess File (for Apache users): Open your .htaccess file and look for redirect rules. An example of a conflicting rule might look like:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ https://www.example.com/$1 [L,R=301]
  1. Review Nginx Configuration (for Nginx users): Check your Nginx configuration file (commonly located at /etc/nginx/sites-available/default). Look for any conflicting server blocks. An example of a potential issue:
server {
    listen 80;
    server_name example.com;
    return 301 https://www.example.com$request_uri;
}

server {
    listen 80;
    server_name www.example.com;
    return 301 http://example.com$request_uri;
}
  1. Clear Browser Cache: Cached redirects can cause persistent issues. Clear your browser cache or test in incognito mode to see if the problem persists.
  2. Examine CMS Settings: If using a CMS like WordPress, check the settings under General > Settings. Ensure that both the WordPress Address and Site Address are set to the same URL format (e.g., both with or without 'www').
  3. Check SSL Configuration: If you have recently installed an SSL certificate, ensure that the HTTPS redirection rules do not conflict with existing HTTP rules. Use a tool like SSL Labs to test your SSL configuration.

After implementing the changes, be sure to restart your web server and clear your browser cache again. This should resolve the ERR_TOO_MANY_REDIRECTS error. If issues persist, consider consulting server logs for more detailed error messages.

Redirect ChainsEach extra redirect adds 100-300ms latency and reduces PageRank along the chain.
HTTP to HTTPSVerify the redirect is performed correctly without intermediate unencrypted hops.
Redirect LoopsCircular redirects cause ERR_TOO_MANY_REDIRECTS error and complete page unavailability.
301 vs 302 Codes301 permanently passes PageRank, 302 is a temporary redirect without passing SEO weight.

Why teams trust us

10+
redirect hops
HTTPS
redirect check
<2s
result
301/302
redirect codes

How it works

1

Enter URL

2

Redirect chain followed

3

Codes & final URL shown

Redirect checker: optimize redirect chains

Incorrect or long redirect chains slow down the site, lose PageRank and confuse search crawlers. The tool visualizes the full redirect chain with response codes and timing for each hop.

Full hop chain

Shows each redirect step: URL → code → URL → code, through to the final destination.

Time per hop

Measures latency at each redirect step for precise identification of performance bottlenecks.

Redirect type

Distinguishes 301, 302, 303, 307, 308 — each has different behavior for SEO and browsers.

Loop detection

Automatically detects circular redirects and warns before the browser throws an error.

Who uses this

SEO

redirect chain audit

Developers

301/302 debugging

DevOps

HTTPS redirect check

Marketers

UTM link tracking

Common Mistakes

Chains of 3+ redirectsHTTP → HTTPS → non-www → www — that's three redirects instead of one. Merge them into a single direct redirect.
Using 302 instead of 301302 for permanently moved pages means losing PageRank. Use 301 for final migrations.
Redirecting HTTP to HTTP before HTTPSAn intermediate unencrypted hop creates an MITM vulnerability and adds an extra request.
Not updating internal linksRedirects are not a substitute for updated links. Links to original URLs should be updated directly.

Best Practices

Use one redirect: HTTP+www → HTTPS+non-wwwConfigure a single nginx/Apache rule combining both conditions into one 301 redirect.
Check redirects after migrationsDomain change, HTTPS migration, URL structure redesign — all create new redirect chains.
Remove stale redirectsRedirects accumulated over years create hidden chains. Audit .htaccess and configs quarterly.
Control redirects in sitemapSitemap should only contain final URLs without redirects — otherwise crawlers waste crawl budget.

Get more with a free account

Redirect check history and API for automated chain auditing.

Sign up free

Learn more

Frequently Asked Questions

What is the redirect limit?

Chrome: 20. Firefox: 20. Then block. Curl default: 50.

How do I inspect my chain?

Enterno Redirects Checker shows the chain + codes + timing. Or curl -IL -w "redirects: %{num_redirects}\n" https://example.com.

Cloudflare Flexible vs Full?

Flexible: Edge↔User = HTTPS, Origin↔Edge = HTTP. Flexible + HTTPS redirect in PHP = loop. Full: both HTTPS — no loop.

Loop after HSTS preload?

If yes, the domain is HTTPS-only forever. HTTP redirect won't help. Fix only on the HTTPS side with the right target.

Try the live tool that powered this guide

Free plan — 10 monitors, checks every 5 min, no card required. Upgrade for 1-minute interval and multi-region monitoring.