I changed the DNS settings from Siteground to Cloudflare a couple of weeks ago and it was working without any issues. However, now I can’t access the site because of too many redirect loops.
I have checked this troubleshooting article and cannot find anything wrong. Encryption mode is set to FULL and the origin server has a valid SSL as well. https://developers.cloudflare.com/ssl/troubleshooting/too-many-redirects/
I noticed that when I turned the development mode on, it started to work again.
Any suggestions would be greatly appreciated. Thanks
Your WordPress seems currently to redirect insecure requests (via Cloudflare), with a Cache-Control header asking browsers to cache it for 4 hours. After doing all of the above, wait minimum 4 hours, and see if the problem (ever) occur in any browsers again.
Thanks for checking!
It’s not happening right now. It happened a couple of times last week. Purging the Cloudflare cache seems to fix the issue every time.
I’ve applied the steps given by @DarkDeviL and see if it happens again.
Next time it happens try opening the page with Dev Tools open (F12) > Network tab, use Network Conditions to throttle the speed to slow 3G, then stop the page between redirects. If it is caused by the firewall, you should see a 200 HTTP response with the meta refresh as its content. That will give you certainty as to whether or not this is the issue.
According to SG support, their AntiBot system does not work well with Cloudflare caching at the moment. They said Cloudflare is overzealously caching some pages, and it’s breaking the functionality of the AntiBot system. Either way, they don’t go well, causing redirect loops.
I hope this will resolve the issue.