Mobile app version of vmapp.org
Login or Join
Debbie626

: 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

@Debbie626

Posted in: #Domains #NoWww #Seo #Subdomain

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Debbie626

1 Comments

Sorted by latest first Latest Oldest Best

 

@Jamie184

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme