Www.example.com OK, but example.com NOT

Aloha!

When I type www.mydomain.com into a browser it goes to my Discourse site, however, when I type mydomain.com (without www.) it does not.

I followed Discourse’s GoDaddy set up exactly, can anyone explain how to get the mydomain.com to work?

Mahalo.

This issue has nothing to do with Discourse and it’s about your domain DNS records. From your description it looks like you have an A record for the subdomain www pointing at the IP address where you’re hosting Discourse, which is different to the root domain (usually an A record with the name @). I’ve never used GoDaddy, so it’s better if you browse through their help section unless somebody else here can help you out.

2 Likes

It’s likely more than that. You also need to deal with Let’s Encrypt and your proxy to make this work if you are using https (like you should!)

See:

If I were you, keep it simple and use only one.

Configure the @ record for your domain as an A record to 45.55.96.103

This leverages our (free) service that redirects anything.tld to www.anything.tld.

5 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.