Use 301 Redirects to Properly redirect www urls to non-www urls

A company you can trust

In the “.htaccess” file in the root of your website you need to add the following code to the TOP of you file.

HTML
# Handle duplicate content with redirects
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.(.*) [NC]
RewriteRule ^(.*) http://%1/$1 [R=301,L]