?
2014-02-13 03:33:31 UTC
I read the best method to avoid problems in the search engines is to go into cpanel and edit the .htaccess file to redirect. However I found 2 difference pieces of code online and since I'm not up on this, just needed some help.
FIRST SAYS THIS CODE:
RewriteEngine On
RewriteBase /
RewriteCond % ^www.example.com [NC]
RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
SECOND SAYS THIS CODE:
RewriteEngine on
RewriteBase /
#Force non-www:
#RewriteCond %{HTTP_HOST} www.example.com(.*)$ [NC]
#RewriteRule ^(.*)$ http://example.com%1/$1 [R=301,L]
Really appreciate some help. Thanks.