Skip to main content
Domain Does Not Work With www

Fixing a website that cannot be accessed with www

Updated over 3 months ago

It’s common for websites to only use the root domain name, eg. domain.tld, instead of having www before the domain (www.domain.tld). This can be a matter of preference, and you can set up your domain to be accessed in both ways.

If you’re currently facing issues when trying to reach your website with www, while your root domain is working, make sure that there is a properly set up record for the host www on your domain’s DNS zone. Just follow the steps depending on where your domain is pointing:

NOTES

  • Some services (such as Blogger or Shopify) require specific values for this record; in that case, you should consult with your service provider

  • For SEO purposes, having a website available through only one URL is better; if needed, you can create a redirection from non-www to www

  • As a general rule, subdomains do not use www; if you need your subdomain to work with www, make sure to create the corresponding www record for your subdomain in addition to that for your domain

Domain Pointing to Hostinger

Go to the domain’s DNS Zone in your hPanel and search for a CNAME record with the name www. It should be pointing to your root domain:

If the content of the CNAME record is different, click on Edit and change the target to your root domain name.

Alternatively, you may find an A record with the name www pointing to your account’s IP instead of the CNAME record:

If there is an A record for www that points to a different IP, click on Delete to remove it.

In this case, or if neither of these A nor CNAME records is present, add only the CNAME record using the following parameters:

  • Name (Host): www

  • Target (Points to): your root domain (e.g. domain.tld)

  • TTL: Leave the default value (14400)

You can see this guide for more detailed information on CNAME records and how to add them: How to Manage CNAME Records on hPanel.

If you’ve made changes to the DNS zone of your domain, it can take up to 24 hours until the propagation process is completed and your domain is reachable with www.

Domain Pointing to Other Registrars

Go to the domain’s DNS Zone on your registrar or provider’s panel and search for a www CNAME record pointing to your root domain. It may have just www or the full domain in the name (host) or the record:

Alternatively, you may find an A record with the name www pointing to your account’s IP instead of the CNAME record.

If there is an A record for www and it’s pointing to a different IP, remove it.

In this case, or if neither these A nor CNAME records are present, add only the CNAME record using the following parameters:

  • Name (Host): www

  • Target (Points to): your root domain (e.g. domain.tld)

  • TTL: Use the default value or set it to 14400

You can check this article for a comprehensive list of guides on how to manage your external domain’s DNS zone: How to Make DNS Record Changes in Other Registrars/Hosting Providers.

After applying any changes, it can take up to 24 hours until the propagation process is completed and your domain is reachable with www.

Did this answer your question?