Heres a simple little entry for a .htaccess file that automatically maps any non www. domains to the www.versions (may not work on sub domains) providing a neat way of controlling canonical domain issues with a little 301 magic.

Options +FollowSymLinks

RewriteEngine on

RewriteCond %{HTTP_HOST} ^domain.com [NC]

RewriteRule ^(.*)$

[L,R=301]

Enjoy!

repostus bttn white sml Using .htaccess and 301 Redirects to Resolve Canonical Domain Issues