I recently needed to redirect all the traffic from http://www.landscapesurvey.com to http://landscapesurvey.com. This was necessary because I purchased an SSL certificate that only goes with http://landscapesurvey.com and didn’t want the ugly warning message coming up if my users were using the www. version of my site.
What I consequently found out is that google is penalizing for duplicate content and considered having both the www and non www sites as duplicate content.
So after searching the internet I found that to remove the www from your url you need to put the following in your apache conf file.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.example.com$ [NC]
RewriteRule ^(.*)$ http://example.com/$1 [R=301,L]

Sorry, comments are closed for this article.