Forums

CNAME or A record?

Hi,

Wordpress hosts the domain and I added the CNAME. Now it only works when going to WWW.domain.com and not when going for the "naked" domain domain.com.

How is this to be fixed?

.

This is the solution we recommend -- it's easiest and cheapest. If you use a redirection service:

When someone goes to http://yourdomain.com/ they are redirected to http://www.yourdomain.com/ If they go to http://yourdomain.com/foo they are redirected to http://www.yourdomain.com/foo, and so on. They normally don't support HTTPS, however. This is generally not a problem because all you're trying to handle is people typing URLs into a browser. If someone types yourdomain.com or http://yourdomain.com, they'll get your site. The only case that won't work is if they type https://yourdomain.com, including the s after http, which pretty much no-one is ever going to do. However, if you think that people are going to do it for your site, then see the "HTTPS redirection" section below.

Many domain name registrars/DNS providers provide HTTP redirection as a free service as part of the domain registration fee, often calling it something like "web site redirection" or "URL forwarding".

Here are links to the appropriate documentation for some popular registrars:

GoDaddy NameCheap Gandi Google Domains If you are using a different registrar, searching for "forward naked domain" plus the name of your registrar will probably find the appropriate help page.

If your registrar doesn't support redirection, lots of people hosting on PythonAnywhere use the free service from WWWizer, which has been around for some time.

HTTPS redirection - There's also a "low-cost single domain plan" service from NakedSSL which can handle HTTPS redirection -- that is, from https://yourdomain.com to https://www.yourdomain.com.