Posted By

zartgesotten on 06/27/09


Tagged

google content htaccess duplicate seo


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

vali29
Kraeved


edit htaccess to prevent duplicate content


 / Published in: HTML
 

This is to prevent duplicate content when your provider directs your http://domain.com to the same place as http://www.domain.com

  1. Options +FollowSymlinks
  2. RewriteEngine on
  3. RewriteCond %{HTTP_HOST} !^www. [NC]
  4. RewriteCond %{HTTP_HOST} !^$
  5. RewriteRule ^(.*) http://www.%{HTTP_HOST}/$1 [R=301]

Report this snippet  

You need to login to post a comment.