You just connected your domain to Cloudflare or enabled a new HTTPS setting, and suddenly Chrome displays: “This page isn’t working — example.com redirected you too many times (ERR_TOO_MANY_REDIRECTS).” Worse, both your homepage and your /wp-admin/ login screen are trapped in the loop!
Don’t worry—infinite redirect loops in WordPress are almost always caused by one of three settings that take less than 5 minutes to fix.
Outgrowing Free Hosting Limits? Claim Our Partner Discounts
Upgrade to fast Hostinger LiteSpeed WordPress Hosting (with an extra 20% referral discount + free domain) or grab low-cost Namecheap cPanel Hosting & Domains with free WHOIS privacy:
Cause #1: Cloudflare “Flexible” SSL Mode (Fixes 70% of Loops!)
If your domain uses Cloudflare (which you can check in 2 seconds using our Website Host & CDN Detector), look at your SSL configuration:
- When Cloudflare is set to Flexible SSL, Cloudflare talks to visitors over
https://, but forwards every request to your web hosting server over plainhttp://. - Your WordPress site sees an incoming
http://request and redirects the visitor back tohttps://—triggering an endless ping-pong loop! - The Fix: In Cloudflare Dashboard → SSL/TLS → Overview, switch from Flexible to Full (Strict) (or Full).
Cause #2: Mismatched `WP_HOME` and `WP_SITEURL` (`http` vs `https` or `www` vs non-`www`)
If you cannot log into `/wp-admin/` because of the loop, open wp-config.php in cPanel File Manager and hardcode your canonical URL above “That’s all, stop editing”:
define( 'WP_HOME', 'https://yourdomain.com' );
define( 'WP_SITEURL', 'https://yourdomain.com' );Cause #3: Conflicting `.htaccess` `RewriteRule` Directives
Stacking multiple redirect plugins or manual `.htaccess` rules often creates contradictory `www` and `https` rules. Test your redirect rules safely in our Free .htaccess RewriteRule Simulator or generate a clean file with our .htaccess Generator.
Frequently Asked Questions (FAQ)
What causes ERR_TOO_MANY_REDIRECTS in WordPress after enabling Cloudflare?
When Cloudflare SSL mode is set to ‘Flexible’, Cloudflare connects to your origin web server over HTTP (port 80) while your WordPress site or .htaccess tries to redirect all HTTP requests back to HTTPS—creating an infinite redirect loop.
How do I fix a Cloudflare redirect loop in 30 seconds?
Log into your Cloudflare dashboard, go to SSL/TLS -> Overview, and change the encryption mode from ‘Flexible’ to ‘Full’ or ‘Full (Strict)’.
How can I fix mismatched WordPress site URLs if I cannot access /wp-admin/?
Connect via cPanel File Manager or FTP, open wp-config.php, and define WP_HOME and WP_SITEURL with your exact https:// domain URL.