“Too many redirects” and HTTPS redirect loops
Fix ERR_TOO_MANY_REDIRECTS: conflicting HTTPS and www rules in .htaccess, WordPress settings, plugins and Cloudflare’s SSL mode.
On this page
Does this match what you’re seeing?
- The browser says ‘This page isn’t working – redirected you too many times’
- ERR_TOO_MANY_REDIRECTS
- The loop started after forcing HTTPS or enabling Cloudflare
Two rules are sending the browser back and forth: A redirects to B, and B redirects back to A.
First, clear cookies and test privately
Browsers cache redirects. Test in a new private window after each change.
Cause 1: Cloudflare Flexible SSL (very common)
Cloudflare in Flexible mode connects to your site over HTTP. Your site redirects to HTTPS. Cloudflare connects over HTTP again. Loop.
Fix: in Cloudflare, set SSL/TLS mode to Full (strict). Using Cloudflare with Traxio hosting
Cause 2: WordPress address doesn’t match the redirect
WordPress Settings → General says http:// or www, while .htaccess forces https:// or non-www.
Fix: make both addresses match what .htaccess enforces. If you’re locked out, set them in wp-config.php. How to change your WordPress site URL
Cause 3: duplicate rules
HTTPS or www redirects in more than one place:
.htaccess- a WordPress SSL or redirect plugin
- DirectAdmin Site Redirection
- Cloudflare page rules
Fix: keep one. A single combined .htaccess rule is simplest. Redirects with .htaccess: copy-ready examples Remove or disable the others.
Cause 4: a redirect pointing at itself
A Site Redirection or .htaccess rule redirecting /page to https://yourdomain.co.uk/page, which matches the same rule again.
Fix: add a condition so the rule only fires for the old form, as in the examples in Redirects with .htaccess: copy-ready examples.
Find the loop
An online redirect checker lists each hop, showing exactly which two URLs bounce between each other.
Prefer to follow along?
- Make your site secure with HTTPS
Beginner · 15 min - Redirect old URLs after a redesign
Intermediate · 30 min
Common questions
Why does my site say “too many redirects”?
Two redirect rules are sending the browser back and forth in a loop. With Cloudflare in front of the site, the usual cause is the SSL mode being set to “Flexible” — set it to “Full (strict)” instead.
Spotted something out of date or unclear? Tell us and we’ll fix it.