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!
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
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.