I added a WWW record as CNAME to @ in the Networking panel in DigitalOcean and I am unable to access my domain with www.domain.com (it simply says “This site can’t be reached” no redirect loops"). I am able to access my domain as domain.com though.
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!
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!
Without have the domain, it’s a little difficult to assist, but try running these commands to make sure the DNS is correct:
dig yourdomain.com NS
dig yourdomain.com A
dig www.yourdomain.com CNAME
And do you have www.yourdomain.com enabled in your web server as well as yourdomain.com?
Here is my .htaccess
#Force www: RewriteEngine on RewriteCond %{HTTP_HOST} ^playhorrorgames.com [NC] RewriteRule ^(.*)$ http://www.playhorrorgames.com/$1 [L,R=301,NC]
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.