: How to handle www and non-www? tl;dr : For SEO, should I redirect from one to the other or list both on the DNS records? It seems that most experts think that both www and non-www should
tl;dr : For SEO, should I redirect from one to the other or list both on the DNS records?
It seems that most experts think that both www and non-www should exist. (Please correct me if I'm wrong.) And Google Webmasters Tools lets you choose which is the main one.
But: will a redirect give all SEO weight to one of them instead of splitting it? (There are other search engines after all, so setting the main one in Google Webmasters Tools might not be enough.) Will having both on the DNS records give them more importance? No difference?
More posts by @Debbie626
1 Comments
Sorted by latest first Latest Oldest Best
It is a nicety that both www and non-www forms of a site exist. However, it is better for search that this does not happen.
It is better that one 301 redirect to the other.
The reason for this is simple and two fold: one, no duplicate content; and two, search metrics/prowess is not divided over the two.
It is far better to have one site that performs well in search. Tradition is that the www sub-domain is used to indicate a world wide website. I always recommend redirecting using a blanket 301 redirect from the parent domain example.com to the sub-domain example.com. People expect it.
Here is some example code for Apache .htaccess:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com$ [NC]
RewriteRule ^(.*)$ www.example.com/ [L,R=301]
Of course if you use HTTPS, you would change the RewriteRule from http to https. As well, change example.com to your domain name.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.