/ 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
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Options +FollowSymlinks RewriteEngine on RewriteCond %{HTTP_HOST} !^www. [NC] RewriteCond %{HTTP_HOST} !^$ RewriteRule ^(.*) http://www.%{HTTP_HOST}/$1 [R=301]