Link to home
Start Free TrialLog in
Avatar of cnl83
cnl83Flag for United States of America

asked on

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?
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

You should have two A records.  One for www and one that is blank.  That handles www.domain.com and domain.com URLs
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
You don't have an Active Directory domain with the same name as that public domain, do you?
Avatar of cnl83

ASKER

This domain is managed in a cpanel environment and unrelated to AD.

I have an A record "@" that points to the site ip address.
I have a cname record "www" that points to "mydomain.com".

I tried to add a Cname without the www, but it was denied.
Can't do a CNAME without a value.  That's what A records are for.
Avatar of cnl83

ASKER

So how should the A record look?
Two records.  One has www. and the other is blank.  Both point to the IP address for the site.
Avatar of cnl83

ASKER

I get name is required. Host record field is required.
Avatar of cnl83

ASKER

should I try *?
Try @ rather than *.
You need to talk to your registrar.  Something is not right.
Avatar of cnl83

ASKER

There is already an @
ASKER CERTIFIED SOLUTION
Avatar of DrDave242
DrDave242
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial