Mobile app version of vmapp.org
Login or Join
Pierce454

: 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

@Pierce454

Posted in: #Cname #Dns

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.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Pierce454

1 Comments

Sorted by latest first Latest Oldest Best

 

@Shelley277

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme