Skip to content

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 your site's SSL →

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 SSL Certificate →

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.
  • SSL Certificates: Mismatches in SSL configurations can also lead to redirect loops, especially when HTTP to HTTPS redirection is improperly set up.

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.

CertificateExpiry, issuer, domains (SAN)
ChainIntermediate and root CA validation
TLS ProtocolTLS version and cipher suite
VulnerabilitiesHeartbleed, POODLE, weak ciphers

Why teams trust us

TLS 1.3
supported
Full
CA chain check
<2s
result
30/14/7
days-to-expiry alerts

How it works

1

Enter domain

2

TLS chain verified

3

Expiry date & vulnerabilities

What Does the SSL Check Cover?

SSL/TLS is the encryption protocol that protects data between the browser and server. Our tool analyzes the certificate, chain of trust, TLS version, and knownvulnerabilities.

Certificate Details

Issuer, validity period, signature algorithm, covered domains (SAN), and validation type (DV/OV/EV).

Chain of Trust

Full chain verification: from leaf certificate through intermediates to root CA.

TLS Analysis

Protocol version (TLS 1.2/1.3), cipher suites, Perfect Forward Secrecy (PFS) support.

Expiry Alerts

Set up a monitor — get Telegram and email alerts 30/14/7 days before expiration.

DV vs OV vs EV Certificates

DV (Domain Validation)
  • Confirms domain ownership only
  • Issued in minutes automatically
  • Free via Let's Encrypt
  • Suitable for most websites
  • Most common certificate type
OV / EV
  • Organization (OV) or Extended Validation (EV)
  • Issued in 1-5 business days
  • Costs $50 to $500/year
  • For finance, e-commerce, government sites
  • Increases user trust

Who uses this

DevOps

SSL certificate monitoring

Security

TLS config audit

SEO

HTTPS as ranking factor

E-commerce

customer trust

Common Mistakes

Expired certificateBrowsers block sites with expired SSL. Set up auto-renewal or monitoring.
Incomplete certificate chainWithout intermediate CA, some browsers and bots cannot verify the certificate.
Mixed content on HTTPS siteHTTP resources on an HTTPS page — the browser lock icon disappears, reducing trust.
Using TLS 1.0/1.1Legacy TLS versions have known vulnerabilities. Use TLS 1.2+ or 1.3.
Domain mismatch in certificateThe certificate must cover all site domains, including www and subdomains.

Best Practices

Set up auto-renewalLet's Encrypt + certbot with cron — certificate renews automatically every 60-90 days.
Enable HSTSStrict-Transport-Security header forces browsers to always use HTTPS.
Use TLS 1.3TLS 1.3 is faster (1-RTT handshake) and safer — legacy ciphers removed.
Monitor expiration datesCreate a monitor on Enterno.io — get notified well before expiration.
Verify chain after renewalAfter certificate renewal, confirm that intermediate certificates are installed.

Get more with a free account

SSL certificate monitoring, check history and alerts 30 days before expiry.

Sign up free

Learn more

Sources

Frequently Asked Questions

What is the redirect limit?

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

How do I inspect my chain?

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

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.