Not able to access WWW domain even with CNAME

I added a WWW record as CNAME to @ in the Networking panel in DigitalOcean and I am unable to access my domain with (it simply says “This site can’t be reached” no redirect loops"). I am able to access my domain as though.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Here is my .htaccess

#Force www: RewriteEngine on RewriteCond %{HTTP_HOST} ^ [NC] RewriteRule ^(.*)$$1 [L,R=301,NC]

Strangely, using the NS command, it shows my domain pointing to default NameCheap servers; however, I am confident that I pointed correctly to the DigitalOcean name servers. The A command shows my domain pointing to my web server. (My A record is on DigitalOcean, not NameCheap)

And yes, I believe I have the domain correctly setup for my web server.

Do you need the domain?

Thank you for your help and your time!

Hi @danzamoshchin

Without have the domain, it’s a little difficult to assist, but try running these commands to make sure the DNS is correct:

dig NS

dig A


And do you have enabled in your web server as well as