Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I used to have a website which could be addressed by both example.com and www.example.com leading to the same page.

Now, I moved to another server and only the example.com works.

I got an email from Googlebot complaining that it cannot access www.example.com.

I know I can make www.example.com point to example.com, but do I really need it? Why not have only example.com?

share|improve this question
3  
It should be easy enough to add a url dns record for www. –  krobertson 16 hours ago
add comment

2 Answers

User Experience

User experience is an important factor when operating a website. Some people may type the website with or without the www in the URL bar without searching for your site on Google or any other search engine, an error return because they typed with or without www would dampen the user experience.

SEO Importance

Another reason why it's recommended is that someone may link to your site, should it be on their blog, forum or anywhere else, with or without www. If the site isn't accessible via the linked link then no credit will be passed.

301 Redirecting

Generally the best way to resolve this issue and the easiest is not to have your site physically accessible with and without www but rather redirect the incorrect one to the correct one.

share|improve this answer
    
Good answer. I'd also add that users may have already bookmarked the wrong url for another UX reason. –  Richard B yesterday
    
OK. Can you elaborate on the redirect issue? I read that it is possible to add a "CNAME" record to the DNS, such that "www" is redirected to "@" (which means a naked domain). Is this a good option for SEO? –  Erel Segal Halevi 23 hours ago
2  
Redirecting www to the naked domain is a fine SEO solution. It requires more than just a DNS entry though. It also needs your webserver configuration to issue the 301 redirect. –  Stephen Ostermiller 23 hours ago
2  
It's worth emphasising that a CNAME record does not redirect anything. It makes one name into an alias of another name in DNS, i.e. these names will resolve the same (to the same IP in the case of an A / AAAA lookup). –  Håkan Lindqvist 18 hours ago
    
show 2 more comments

You really do need to have the www. sub-domain point to your website. It is particularly important for type in traffic. If you tell a person to visit example.com, a large number of them will add a www. In my experience it is 40% or more that do this.

I myself tend to like naked domains with no subdomain when creating a website. I have occasionally neglected the redirecting www in the past. I almost always get a complaint from somebody that "your website doesn't work" and it is because they are adding the www. This is even the case when there is already some other subdomain like mytrip.example.com. Some people insist and accessing it like www.mytrip.example.com.

If Google is telling you that it can't access your site with www. it is likely because there are external links that point to it. If you want to keep those links working and retain any PageRank from them, you should support the www. subdomain.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.