: I have a CNAME for www, how do I redirect root domain there? My DNS setup is rather simple: a CNAME for www, default (registrar's) nameservers for the root. Now I want to redirect from the
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.
More posts by @Pierce454
1 Comments
Sorted by latest first Latest Oldest Best
You need an A record for your domain root, pointing to the IP address of your server.
Only once you have that in place (thus directing requests for example.com to your server) will your .htaccess rules take effect.
Since your server does not have a static IP address, you will need to find out if your DNS provider supports ALIAS or ANAME records. These allow you to have CNAME-like functionality at the zone apex. If your provider does not support these records types, you should be able to move to a provider that does support them without significant effort.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.