Report this

What is the reason for this report?

WWW Note Resolving

Posted on January 8, 2021

Hi, I hope someone can help with with this. I have setup my website on the droplet (wordpress) and it all loads fine and is secured. The normal load is https://mydomain however, when I put a www. in front of it, it goes to a 404. I have A records setup for both blank to IP address and www. to the IP address. Any help would be greatly appreciated. Thanks



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!

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.

Hi there @hostingWhale,

What I could suggest is changing the DNS record for your www from an A record to a CNAME record and pointing it to your main domain name.

Another thing that you could do is to check your Apache virtual host at:

cat /etc/apache2/sites-enabled/yourdomain.com

There you need to add your www version as a ServerAlias.

Regards, Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.