• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 280
  • Last Modified:

My domains do not work without the www in URL

I recently found out that none of the domains on my server work without the "www" in the URL.  In other words for domain "mydomain.com", http://www.mydomain.com WILL work, whille http://mydomain.com won't (just an example).

I have my own DNS on my server but I cannot see which entry might be the one I might need.  I need specific information on what to add to the DNS in order to rectify this.

I already have a line that says:

(same as parent folder)  Host A  [my IP address]

I'm pretty sure the problem lies in my DNS, just not sure what to do.

Thanks for all who respond.
0
blaster998
Asked:
blaster998
2 Solutions
 
amaru21Commented:
Can you try creating a CNAME record instead of an A record?  Add mydomain.com as an alias for www.mydomain.com.

Can you verify that DNS is working properly?  When you run nslookup on the server does it return the same IP for both mydomain.com and www.mydomain.com?
0
 
blaster998Author Commented:
I have a record in DNS like:
www       Alias (CNAME)     [domain name]  <---without "www"
Is this what you mean?
I did a NSLOOKUP and it DID get the same IP address for both scenarios using "www" and "non www" for the domain
0
 
amaru21Commented:
What web server are you using?  IIS 5?  If so, you may want to make sure the web server is configured properly.

For IIS 5:
http://support.microsoft.com/kb/308163/EN-US/

0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
blaster998Author Commented:
Yes.. IIS 5.  So my settings are correct and its probably a web server issue?
0
 
blaster998Author Commented:
One of my domains DOES work without the "www".  The only difference in the DNS entries is the MX line for email that the domain (which works) HAS, the other doesn't.
0
 
suggestionstickCommented:
Hi

if DNS has a www entry and it is pointing to the correct web  server, the issue could  be that there is no www.domainname.com entry in the host headers configuration for this site

have a look at the following link:

http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/883a9544-3f70-4d46-a6df-bbadbd1fe7de.mspx?mfr=true
0
 
asethi19Commented:
you will need to another header to your website

In website properties click on advance and in website identification add an entry without www


0
 
blaster998Author Commented:
Thanks Asethi, I went into IIS 6.0 (not IIS 5)  and looked at the "advanced tab".  The 2 entries are already there for both "www" and without "www".  Just to be sure, I deleted the entry that didn't have the "www" and re-added it.
Tested the domain again, but I'm still getting an errror "Oops!  This link appears broken"
0
 
Chris DentPowerShell DeveloperCommented:

The DNS part is easy enough to test. Run:

nslookup mydomain.com

If you get the right IP address then DNS has finished. Then it's time to look on the web server. I would check the following:

 - The Host Headers (sounds like you have)
 - The Logs for the default site and the site holding the host header

In the logs, check for the values used to access the site, and see if it's hitting the default web site rather than the specific site. This does assume that you still have a default web site with no host header defined.

Chris
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now