
ERR_TOO_MANY_REDIRECTS (Chrome) or "The page isn't redirecting properly" (Firefox) means the browser was sent round in a redirect loop: page A redirects to B, and B redirects back to A, until the browser gives up. Also, the most common causes are Cloudflare's SSL mode set to Flexible while the server forces HTTPS, mismatched WordPress Address and Site Address settings, conflicting redirect rules in .htaccess or plugins, and stale cookies. In addition, this guide shows how to find the loop and fix each cause safely.
- First clear cookies for the site or try a private window, to rule out a browser-side problem.
- Trace the loop with
curl -ILor an online redirect checker to see which URLs bounce. - Using Cloudflare? Set SSL/TLS to Full (strict), not Flexible.
- In WordPress, make sure
siteurlandhomeuse the same, correct https URL.
ERR too many redirects: quick checks for visitors
- Open the page in a private or incognito window.
- Clear cookies for that one site (click the padlock or site icon in the address bar → Cookies and site data).
- Try another browser or device. If it works elsewhere, the cause was a stale cookie or cache.
ERR too many redirects: trace the loop (site owners)
curl -sIL --max-redirs 10 https://www.example.com/ | grep -iE "^(HTTP|location)"
In fact, the output shows each hop. Typical loop patterns:
| Pattern | Likely cause |
|---|---|
| https → http → https → http | Cloudflare Flexible SSL, or a plugin forcing http while the server forces https |
| www → non-www → www | Server or panel forces one host, WordPress or a rule forces the other |
| /page → /page/ → /page | Trailing slash rules fighting each other |
| /wp-admin → /wp-login.php → /wp-admin | Cookie, HTTPS or siteurl problem affecting login |
Fix 1: Cloudflare SSL mode
With Flexible SSL, Cloudflare connects to your server over plain HTTP. If your server or WordPress redirects HTTP to HTTPS, every request is redirected again, forever. Fix:
- Make sure the origin server has a valid SSL certificate (free Let's Encrypt from your host, or a Cloudflare Origin Certificate).
- In Cloudflare go to SSL/TLS → Overview and choose Full (strict).
- Enable Always Use HTTPS in Cloudflare, and keep only one HTTPS redirect at the origin or none.
See our Cloudflare setup guide for the full recommended settings.
Fix 2: WordPress Address and Site Address
In Settings → General, both fields should match your real URL, including https and www (or not). If you cannot reach the dashboard, set them in wp-config.php:
define( 'WP_HOME', 'https://www.example.com' );
define( 'WP_SITEURL', 'https://www.example.com' );
Or with WP-CLI:
wp option update home 'https://www.example.com'
wp option update siteurl 'https://www.example.com'
If the site is behind a proxy or load balancer that ends SSL, WordPress may think requests are HTTP. Then add this above the "stop editing" line in wp-config.php:
if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https' ) {
$_SERVER['HTTPS'] = 'on';
}
Fix 3: Conflicting .htaccess and server rules
Look for more than one HTTPS or www rule. Many hosting panels have a "Force HTTPS" switch as well; combined with a rule in .htaccess and a plugin, they can disagree. Keep one combined rule:
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.example.com%{REQUEST_URI} [L,R=301]
Back up .htaccess before editing. To test whether it is the cause, rename it temporarily to .htaccess-old; WordPress can regenerate a default one when you re-save permalinks.
Fix 4: Plugins and caching
- Redirect, SSL (such as Really Simple SSL), multilingual and security plugins can all add redirects. Deactivate them one at a time, or rename the
wp-content/pluginsfolder via File Manager to deactivate all at once. - Purge every cache layer after each change: caching plugin, server cache (LiteSpeed, Varnish), and CDN.
- Check the Redirection plugin's list for a rule pointing a page to itself.
ERR too many redirects: other causes
- A redirect from a page to a URL that redirects back, created during a redesign.
- A WooCommerce "force secure checkout" setting fighting a non-HTTPS site URL.
- Cookies set for the wrong domain after moving from non-www to www.
ERR too many redirects: frequently asked questions
Does a redirect loop hurt SEO?
Yes, if Googlebot meets it: the page cannot be crawled and may drop out of the index. Fix it quickly and request indexing in Search Console.
Why does it only happen on wp-admin?
Usually a cookie or HTTPS detection problem. Clear cookies and check FORCE_SSL_ADMIN and the proxy HTTPS fix above.
Related guides: 404 Error, 403 Forbidden Error and Your Connection Is Not Private Error.
For official guidance, see Google Search Central.
Site stuck in a loop?
Our support team fixes redirect loops, SSL and Cloudflare problems quickly. Contact us.
Written by the ItsWebExpert team, a web design and development company in Karachi building websites, online stores and apps for businesses across Pakistan.
Ask a Question on WhatsApp