Https redirect loop

I’ve recently noticed that when going to https://mydomain.com it should redirect to https://www.mydomain.com however instead it gets cause in a redirect loop.

I’ve checked my htaccess (which does have 301 and 302 redirects) and there doesn’t appear to be any issues on that front, whilst setting my A record for the domain to DNS only (rather than proxied) seemingly resolves the issue (although purging the cache when the A record for the domain is set to proxied, the issue doesn’t immediately show but does eventually appear.

I’ve gone through the process of discussing the issue with my hosting provider (SiteGround) and they can’t spot any issues from their end (using Let’s Encrypt for the SSL set to Full (Strict) within the SSL/TLS backend of Cloudflare.

The other apparent cause is page rule misconfiguration however as far as I can see, again there are no conflicts.

Page rules are as follows:

https://www.mydomain.com/wp-includes*
Browser Cache TTL: a year, Cache Level: Cache Everything, Edge Cache TTL: a month

https://www.mydomain.com/wp-content*
Browser Cache TTL: a year, Cache Level: Cache Everything, Edge Cache TTL: a month

Any suggestions are previously its best to have the domain A record set to proxied?

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