Return to Snippet

Revision: 15230
at September 7, 2009 03:20 by zartgesotten


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

Revision: 15229
at June 27, 2009 15:29 by zartgesotten


Initial Code
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.de [nc]
rewriterule ^(.*)$ http://www.domain.de/$1 [r=301,nc]

Initial URL


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

Initial Title
edit htaccess to prevent duplicate content

Initial Tags
google, htaccess

Initial Language
HTML