404 Error when we don't add www in the address bar
I have a domain name that is pointing to a web host that we don't have much control over. Meaning no ftp access or cpanel type of access.
I notice this mostly in Chrome. Is there a zone record I should add so that it does not matter if you type www or leave it out?
DNSWeb DevelopmentWeb Servers
Last Comment
DrDave242
8/22/2022 - Mon
Jason C. Levine
You should have two A records. One for www and one that is blank. That handles www.domain.com and domain.com URLs
Julian Hansen
First
ping the www domain and the non-www domain - do they have the same IP - if no then it is a DNS problem.
If yes then it is server configuration problem.
If your webserver is configured to look for the domain name with the www (rather than say an explicit www or a wildcard) then it will return the 404 because when it sees the domain in the request header without the www prefix it won't be able to to find a virtual host to match it to
DrDave242
You don't have an Active Directory domain with the same name as that public domain, do you?