WWW and Without WWW Backlinks
-
I have just seen through ahrefs and found without WWW have more backlinks instead of WWW. Is there any way to forward all those without WWW to WWW domain, is there any harm or effect in serp ranking?
-
Hi Chandu,
Here's everything you ever wanted to know about canonicalization:
-
You'll want to add a 301 redirect to your htaccess file redirecting non-www URLs to www. This will pass the link value to www, as well as prevent potential duplicate content issues. Here is the code to use:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.yourdomain.com [NC]
RewriteRule ^(.*)$ http://yourdomain.com/$1 [L,R=301]