Infinite redirect loop on HTTPS when Cloudflare is active after switching WordPress

What is the name of the domain?

What is the error number?

No specific error number is provided.

What is the error message?

ERR_TOO_MANY_REDIRECTS

What is the issue you’re encountering

After switching the WordPress site URL to HTTPS, an infinite redirect loop occurs only when Cloudflare is active.

What steps have you taken to resolve the issue?

Updated WP_HOME, WP_SITEURL, and FORCE_SSL_ADMIN in wp‑config.php; added an HTTPS detection snippet; cleared Cloudflare, SiteGround, and browser caches; tried various Cloudflare SSL/TLS modes; and disabled plugins. SiteGround confirmed that when I bypass Cloudflare (accessing directly via their hosts file), no redirect loop occurs.

What are the steps to reproduce the issue?

Change the site URL to HTTPS in WP admin, configure wp‑config.php as above, enable Cloudflare (e.g., in Full Strict mode), and then visit https://thesmartcontentlab.com to trigger the redirect loop.

Can you first confirm that you are now using Full (Strict)?

Also, your site seems to be working for me now, can you confirm that?

Yes, I confirm that I am in full script mode. On my end, the site isn’t working. I have cleared all my cookies, purged the cache from Cloudflare and SiteGround, and tried in private browsing. I tried on another computer, and I can access an older version of the site. From this other computer, I also can’t access my WordPress admin."

May I ask that you post a screenshot of what the homepage looks like for you?

Thanks. This is really weird. It’s as if my last 3-4 hours of work on the site yesterday before it crashed are missing. And the version I see on my computer is even older.

Your website is not proxied by Cloudflare at this time, so as long as the IP address in your A record is correct, the problem is not with Cloudflare.

Edit: It is cached on Ezoic CDN.

You made me realize that my A record for SiteGround is gone. That may be the source of the issue.

If you are using Ezoic, you need to make any DNS changes at Ezoic. Otherwise, they will reset your Cloudflare DNS records.

I had applied, but my application was rejected because I didn’t have enough posts on my website yet. I removed the integration, created a new A record to point my domain to SiteGround, and it’s working like a breeze. You saved my day by pointing this out to me. Thank you.

1 Like

This topic was automatically closed after 15 days. New replies are no longer allowed.