DNS configuration and force www

Hi :wave:,

I have a static website on Cloudflare Pages.
I can’t find a way to redirect all users to hxxps://www.my-domain.com (HTTPS and WWW).
I bought the domain on another website and there I configured my dns as explained in Dashboard / DNS / Records (I set the CNAME record).
In Dashboard / SSL/TLS / Edge Cetificates I set “Always Use HTTPS”.
Then I set this Page Rule

The redirect works correctly if I visit hxxp://www.my-domain.com.
But if I visit hxxp://my-domain.com or hxxps://my-domain.com I get DNS_PROBE_FINISHED_NXDOMAIN.

I found a lot of messages and “solutions” that don’t work for me. Any idea?

This error means that you don’t have a DNS record for hxxps://my-domain.com.

1 Like

Thank you, next time I will avoid trying to solve these problems at 2 a.m.

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