Why is "www.example.com" different from "example.com"?

You REALLY don't want to be using both the www subdomain AND the naked domain. This is terrible on the SEO. You can pick either, and it makes no difference which, but once you choose, you must stick with it.

The reason you get that Facebook error is because you originally configured it to use the named domain, and it treats the www subdomain as a separate entity. Same issue with Google.

After you make your decision, you'll want to redirect the one you're NOT using, to the one you picked. (You can do a 301 Permanent Redirect with an Apache rewrite rule, or if you're going from the naked domain to the www subdomain, look at http://wwwizer.com.


Fundamentally, www and non-www are two seperate addresses which (in general) just happen to point to the same content - largely because most web-hosts alias www and non-www

But there is no reason for this to be the case, and these two options are certainly not the only ones (think Wikipedia with en.wikipedia.org de. (etc) and where the www site is a "select your country"

In a non-pejorative sense, this is mostly down to laziness and/or ignorance of the public and many hosts.

Now back to you question, if you have both set up to be the same content, then as far as the typical user is concerned, they are the same website - but many apps (and standard SSL certificates) are not so "clever", and know that they are two separate entities.

Using both will mean incoming links are split, thus splitting any page-rank; also some search-engine crawlers treat the two as separate but duplicate, therefore penalizing you further.

There are pitfalls for using both on a site, but only benefits for sticking with a single option.

This is why it is important to pick one, and use a 301 redirection for the others (and potentially wildcard subdomains too). My preference (YMMV) is to adopt the non-www as standard.