1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

www and non www both versions indexed in google.? pls help ?

Discussion in 'White Hat SEO' started by shaun_shaun, May 23, 2011.

  1. shaun_shaun

    shaun_shaun Junior Member

    Joined:
    Mar 22, 2011
    Messages:
    157
    Likes Received:
    82
    few days ago I created a new website,, all of my links were indexed in google as without www part (http://mysite.com) I wanted my urls to look like http://www.mysite.com
    so today I went to google webmasters tool and set my site's preferred url as http://www.mysite.com

    later I 301 redirect http://mysite.com to http://www.mysite.com by editing .htaccess

    now when I search my domain as site:mysite.com it usually shows previous urls(http://mysite.com)..but end of the search results it says "In order to show you the most relevant results, we have omitted some entries very similar to the 40 already displayed.
    If you like, you can repeat the search with the omitted results included."

    when I click "
    repeat the search with the omitted results included"...I can see my sites www version (http://www.mysite.com) and without www version (http://mysite.com) both indexed in google..
    but the url I wanted (http://www.mysite.com) is currently omitted by google...

    will this fix later ????
     
  2. jon_xx_x

    jon_xx_x Jr. VIP Jr. VIP

    Joined:
    Nov 15, 2008
    Messages:
    3,118
    Likes Received:
    1,460
    I'm not sure you really needed to use the 301 redirects or if that's a good idea even.
    Just build to the www and it will eventually sort out.
     
  3. fnd80

    fnd80 Regular Member

    Joined:
    Oct 27, 2010
    Messages:
    202
    Likes Received:
    79
    please don't give advice unless you know what you're talking about.

    OP - your first step is correct, doing the 301 redirect in your htaccess file.

    second, go to your google webmaster tools and go to site configuration and set your preferred domain as "www.yoursite.com" (as opposed to "yoursite.com").

    give google some time, and they'll start showing everything as www.yoursite.com, but it can take some time...in my experience sometimes up to a couple weeks.
     
  4. shaun_shaun

    shaun_shaun Junior Member

    Joined:
    Mar 22, 2011
    Messages:
    157
    Likes Received:
    82
    thanks mate .. I already followed the 2nd step as I mentioned in my first post ..
    the issue is, after this modification currently both www.yoursite.com and yoursite.com were indexed in google and currently yoursite.com is ranking against the www.yoursite.com

    so after few weeks will google deindex all the yoursite.com instances ????
     
  5. SahL

    SahL Elite Member

    Joined:
    Jan 8, 2011
    Messages:
    1,594
    Likes Received:
    1,296
    Occupation:
    ★SEO expert and ★Sexpert
    Location:
    Bombay
    Home Page:
    Ask your Host to redirect www url to Non www or vice versa
     
  6. jon_xx_x

    jon_xx_x Jr. VIP Jr. VIP

    Joined:
    Nov 15, 2008
    Messages:
    3,118
    Likes Received:
    1,460
    1. I said "I'm not sure"
    2. My method is without Google webmaster because I don't use google webmaster on most my sites.
    3. I've changed my site from site.com to www.site.com for several dozen sites, and have several dozen sites in the top 5.
     
  7. bk071

    bk071 Jr. Executive VIP Jr. VIP Premium Member

    Joined:
    Nov 24, 2010
    Messages:
    3,105
    Likes Received:
    7,917
    Occupation:
    I don't have a job
    Location:
    .............
    And just in case you don't know how to edit your htaccess properly, here it is:

    If you already have a htaccess file, add the following lines to it:
    Code:
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^www.yourdomain.com [NC]
    RewriteRule ^(.*)$ http://yourdomain.com/$1 [L,R=301]
    If you don't have one, create a simple text file and paste the above code in it, then upload it to your site directory. Rename it to .htaccess.

    Thats all :)
     
  8. fnd80

    fnd80 Regular Member

    Joined:
    Oct 27, 2010
    Messages:
    202
    Likes Received:
    79
    Yep. Just give it a little time, and the non-www versions will drop off and you'll just see the www version.
     
  9. shaun_shaun

    shaun_shaun Junior Member

    Joined:
    Mar 22, 2011
    Messages:
    157
    Likes Received:
    82

    thanks but I already did that step in the first place..

    and I followed every step according to google
    Code:
    http://www.google.com/support/webmasters/bin/answer.py?answer=44231
    the issue is both www and non www versions of my url is currently indexed in google..( example.com is ranking against www.example.com )
     
  10. shaun_shaun

    shaun_shaun Junior Member

    Joined:
    Mar 22, 2011
    Messages:
    157
    Likes Received:
    82
    thanks ..that is all I wanted to know !!!:)