Remove/Force www on Your Domain and 301 Redirect
December 18th, 2008
You want to ensure that Google and other SEs only see one domain so you don’t penalized for duplicate content (www and non-www indexed pages are not the same and counted as duplicates).
.htaccess
To redirect to domain.com and 301 existing pages:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]
To redirect to www.domain.com and 301 existing pages:
RewriteEngine [...]









