My DNS setup is rather simple: a CNAME for www
, default (registrar's) nameservers for the root.
Now I want to redirect from the root domain to www, which I thought would be a simple task, but it's not working.
I've followed every guide out there on how to change the htaccess
file and my registrar is even offering a simple setting to do this as well, but no result. When I go to the root of my domain in a browser it instantly says:
mydomain.com's server DNS address could not be found.
What's the right course of action here? Should I add a server alias? A domain alias? Should I add some records to my DNS settings? I'm out of ideas.
Note: I do not have a static IP address for my server. Rather, I need to direct requests to my server using a CNAME
record.
www
subdomain works OK? What does your CNAME record say? How long has it been since the DNS has been configured? If you are within the first 48 hours then the domain could still be propagating around the world's DNS servers.CNAME
record forwww
points to the bare domain eg.example.com
(the canonical domain) for which anA
record points to the IP address. A CNAME record by itself is not "normally" sufficient; but you say this works OK??A
record to (for the "bare" domain) so you can manage the HTTP redirection. There is additional information on the Meteor.com website: Redirecting the root domain