Use 301 Redirects to Properly redirect www urls to non-www urls
In the “.htaccess” file in the root of your website you need to add the following code to the TOP of you file.
|
1 2 3 4 |
# Handle duplicate content with redirects RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.(.*) [NC] RewriteRule ^(.*) http://%1/$1 [R=301,L] |
- by Seth Carstens
- posted at 7:38 pm
- August 6, 2012
- 0Leave a comment
