Skip to main content
1 of 3
Tim Post
  • 6.6k
  • 39
  • 46

If you are going to use www.domain.com, you should make domain.com a permanent re-direct to www.domain.com.

The www subomain, in some cases, is actually a completely different server than the parent TLD. While most search engines are smart enough to figure that out, its still good practice to place the re-direct.

I'm the complete reverse of that, www.mydomain.com is a permanent redirect to mydomain.com, because I prefer using the shorter canonical URL. It also make sense to me that I can expect a HTTP request to foo.com will yield a web page, or a redirect to whatever subdomain is dealing with HTTP requests.

Additionally, you want people linking to your site using the canonical URL, which is the one they pick out of their browser toolbar. The re-direct on the one that is NOT your canonical URL helps ensure consistency in that regard.

Tim Post
  • 6.6k
  • 39
  • 46