Hello Friends, I am very confused what to do now. I have a client site which are already crawled without WWW and my client have got many backlinks with WWW So I can see both www and non-www crawled by Google. Now, he wants to crawl all pages with WWW...what to do now? You can see cache without WWW here and with WWW here Please suggest me what to do? Thanks,
Redirect http only version to the one with WWW. Also might want to redirect your index.html / .php to the domain itself. Below is the code to place in your httaccess file: RewriteEngine on RewriteCond %{HTTP_HOST} !^www RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [L,R=301] RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html\ HTTP/ RewriteRule ^index\.html$ http://www.YOUR-DOMAIN-HERE.COM/ [R=301,L]
Just follow that permanent redirect command going to www version of your client's site and all backlinks going to non-www version will pass to with www version.
There are two methods to move out from this situation : 1. As people have stated above, do the 301 redirection 2. Go to it's google webmaster central and set the prefrence for WWW or without WWW then by next caching google will only consider one and ignore other url's
Above said well already about doing 301 redirect to get this problem solved. Here are quality sources about this topic. 301 Redirects and www/non-www Canonical Problems <-- (support both www-->non-www and the opposite) Some interesting from Google side about the topic SEO advice: url canonicalization - Matt Cutts Fix the www vs non-www Canonical Issue for Your Domain - Google Groups
Your client can sets this parameter on Google webmaster tools. He can set it in webmaster tools that Google determine with WWW or without WWW as the same.
Many thanks buddy..I have just placed this code to htaccess file and Its working fine. I appreciate your help. ******************* Yes, I have already made this changes through CPanel. Thanks of suggestions. ******************* Yes, I have also made changes through Google webmaster tool. ******************* Thanks buddy for good materials. I have reviewed it and understood 301 redirect method. ******************* I have made this changes as well. ******************* Many thanks for your all responses. Hope everything gone well. With regards, Hardip
The best solution.. Google Webmaster Tools > Site Dashboard > Site Configuration > Settings. At proffered domain, choose the second option to display URLs as www.domain.com To be more safe, use htaccess to redirect all non www URLs to www version.
ok...what is better...with WWW or without it? i always use without WWW but sometimes like OP said...the BL i get is with WWW ...that is weird...