Issue :
Regardless of somebody accessing the site with or without the ‘www’ , it should always go to http://domain.com
Solution :
Use the following htaccess code :
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.domain.com
RewriteRule ^(.*) http://domain.com/$1 [R]