Hi again. Tanks to those who have helped me get my site up and runnung.
Everything is looking good, the http forwards automatically to https, and the site is now secure.
Having some trouble, however, on the www version of the domain. When I contacted my host, they told me to set up a CNAME pointing to www.
When I type in the domain with www before it, I get a 526 error (invalid SSL certificate).
Can anyone tell me what I should do?
Try the following instead. Note that if you already have a ‘www’ record set to
, you won’t have to add the suggested “A” record. Just the Page Rule should be enough.
This tutorial covers redirecting www.example.com to example.com when using Cloudflare, to do the opposite, please see
Redirect example.com to www.example.com.
You should replace all instances of example.com in the screenshots with your domain.
Step 1, The DNS Record:
The first thing you will need is a DNS record for www, set to . This can point to any IP address as the redirection page rule will execute first. I would recommend pointing it to 192.0.2.1, a dummy IP.
Step 2, …
Wow okay so that worked. Is it better than a CNAME record? Also, just curious as to why it is a temporary redirect rather than a permanent one.
I’m pretty new at all this!
Thanks so much
Either works, but it’s easier for the tutorial to suggest an “A” record than a CNAME that might cause a conflict. You can make it a 301 permanent if you’d like. That’s what I usually do. But permanents are longer lasting and someone might change their mind before the permanent wears off.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.