Remove www from URLs with .htaccess

This is important to implement for your search engine ranking. Google, for example, thinks www.strongwind89.com is a different site from strongwind89.com, and this can seriously impact where you rank in Google. There are other ways of doing this, but the below is the only one that doesn't spit back a 500 error on my server, for some reason.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]

No comments:

Live Page Popularity