Redirect loop when changing A record and CNAME to proxied, this doesnt happen when

What is the name of the domain?

What is the issue you’re encountering

As soon as I set the A record and CNAME record to proxied I get a redirect loop and cant access site. Im using Cloudways

1 Like

Make sure that your SSL/TLS encryption mode is set to Full (Strict):

https://dash.cloudflare.com/?to=/:account/:zone/ssl-tls

Yes I have it Full Strict, I have however just noticed a page rule - The rule albacampers.com/* with a 301 Permanent Redirect to "https://www.albacampers.com/$1

When I switch this off then it seems to work, however is this rule not required to avoid users accessing the non-www version of the site directly?

Yeah, these do unfortunately not offer that much granularity.

This one would be redirect the naked domain to the www variant, when your record is Proxied (:orange:), where Cloudflare is able to take care of traffic.

By looking at your website, it does look like your current set up is attempting to go in the opposite direction, - to have your website displayed using the naked domain, e.g. without the “www”.

So depending on your actual goal (e.g. www or not), there is indeed a conflict between the Page Rule and the current setup of your website.

Technically, it won’t prevent them from attempting to access the non-www variant, but in case they do, well-behaving browsers will steer the traffic away from the non-www variant, and over to the www variant.

Your Vultr server is however doing the exact opposite, by steering visitors of the www variant over to the non-www variant.

Thank you, this seems to have solved the problem, I have gone into the hosting side and changed primary to the www. version of the site so it seems this is now avoiding the constant loop.

I have had a slight drop in page performance however I’m assuming this is due to Cloudflare now being connected properly and I likely need to change some things/ check if anything is conflicting with it.

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