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.
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."
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.
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.