Report this

What is the reason for this report?

How can I redirect www.mysite.com to mysite.com using DigitalOcean DNS?

Posted on December 18, 2012

I’ve tried to use cname, A record, and I didn’t get it to work.



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.

nightflash is correct. ‘www’ pointing to ‘mysite.com.’ is the right way to do it in Digital Ocean’s DNS settings. Don’t forget the ‘.’ at the end of your domain.

About how long does it take for this to propagate? I still only see the default apache page at www.mysite.com whereas mysite.com has been fine. Do I need to restart the server?

Sorry to re-open this thread…

I need to redirect: mail.mydomain.com to other URL google.com/mail

I’m using Ngix, how can I do this? May I do this in DNS or in nginx config?

Cheers.

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.