Fixing Internal Duplicate Content
If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!
Jerry West has a great post on his site about how to avoid internal duplicate content penalties that can occur if someone links to your site using the “www” version of your domain name when your site is setup to not use it.
The post also points out the danger of using internal relative links.
The fix is a simple bit of code added to your .htaccess file which forces browsers to used your preferred version of you domain.
# Begin non-www page protection #
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.webmarketingnow\.com [NC]
RewriteRule ^(.*)$ http://www.webmarketingnow.com/$1 [L,R=301]
</IfModule>
# End non-www page protection #