Attempting to redirect all www trafic to non-www trafic is not working

Hey there,

I’m trying to redirect all www (and http) traffic to a non-www url. I’ve set up rules, as pictured, but I am still able to access my landing page at the

www url. Any ideas?

Neither nor are proxied so requests aren’t going through Cloudflare to be redirected.

Secondly, this rule will redirect to and result in a circular redirect.

What you need to do…

  1. Enable “Always use HTTPS” here (this will do any http->https for you without a rule).
  2. Remove “hostname equals” from the redirect rule, just leave
  3. Remove the CNAME in the DNS for www and replace with a proxied record of A or AAAA 100::

This assumes your host is ok with the apex and IP addresses and does not need the CNAME to be visible. If it does, you’d be better off redirecting the other way (

1 Like

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