google's indexs of mysite.com and www.mysite.com

Discussion in 'Google' started by xantoniox, Mar 11, 2009.

  1. #1
    site: mysite.com on google get me 2050 results
    site: www.mysite.com instead get me 0 results


    why ? :eek: :mad::confused::(
     
    xantoniox, Mar 11, 2009 IP
  2. freeflyer

    freeflyer Peon

    Messages:
    120
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    because as far as google is conerned, mysite.com is your main one, not www.mysite.com . It will only index one.

    ideally, most use the www version, with a redirect from the non www version, but its not absoultely necessary to have the www version indexed, just neater.

    dont fret it, but if it bother you that much, put a redirect in so all pages will be www, but expect a temporary drop in the serps for your site.
     
    freeflyer, Mar 11, 2009 IP
  3. vansterdam

    vansterdam Notable Member

    Messages:
    3,145
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    245
    #3
    When I do these 2 commands for my website I get identical results. I don't think you are supposed to use a space between the site: and your url. Maybe if you tell us your url we can help more.
     
    vansterdam, Mar 11, 2009 IP
  4. 4chp

    4chp Peon

    Messages:
    163
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Add this in your htaccess file

    rewritecond %{http_host} ^mysite.com [nc]
    rewriterule ^(.*)$ http://www.mysite.com/$1 [r=301,nc]
    Code (markup):
     
    4chp, Mar 11, 2009 IP
  5. xantoniox

    xantoniox Active Member

    Messages:
    102
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #5
    ok... URL is hackerock.com

    at moment htaccess contain this :


    I have to change in this ? :


    ;)
     
    xantoniox, Mar 11, 2009 IP
  6. 4chp

    4chp Peon

    Messages:
    163
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Should be good to go might take a while but it'll start getting picked up as www soon.
     
    4chp, Mar 11, 2009 IP
  7. Brandon Sheley

    Brandon Sheley Illustrious Member

    Messages:
    9,721
    Likes Received:
    612
    Best Answers:
    2
    Trophy Points:
    420
    #7
    if it was me, I would of pushed it to the www. not the http://site.com but it looks like it's working.
    You can also do this via google webmaster tools, and you can tell google which layout you like
     
    Brandon Sheley, Mar 11, 2009 IP
  8. 4chp

    4chp Peon

    Messages:
    163
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #8
    EDIT: Guess he decided to redirect the other way around. ;)
     
    4chp, Mar 11, 2009 IP
  9. freeflyer

    freeflyer Peon

    Messages:
    120
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    edit: just looked at the site.. forget this post.

    PS xantoniox, sort your layout issues before you sort your redirects.
     
    freeflyer, Mar 11, 2009 IP
  10. 4chp

    4chp Peon

    Messages:
    163
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #10
    freeflyer ~ You had an very good debatable answer to this situation. Although we may have went an bit off topic discussing it. :)
     
    4chp, Mar 11, 2009 IP
  11. xantoniox

    xantoniox Active Member

    Messages:
    102
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #11
    I have seen that lifehacker has redirect from www.lifehacker.com to lifehacker.com... that is why I have done the same :eek:


    How ? I haven't found nothing about this :confused:


    homepage is a little confused... I will fix it next week :eek:


    So what is the best solution for me ? :rolleyes:
     
    xantoniox, Mar 11, 2009 IP
  12. wp-themes

    wp-themes Banned

    Messages:
    230
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Just sign in to your Google Webmaster Tools using your Google Account and click on your website name in the Dashboard and on the left hand navigation menu click on settings --> On the right hand side of the page set the required domain to show in Google.

    Both the above solution and .htaccess 301 redirection to the required URL ;)
     
    wp-themes, Mar 11, 2009 IP
  13. AquariusRyan

    AquariusRyan Peon

    Messages:
    109
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    I can confirm it does work and it IS there (Webmaster Tools)
     
    AquariusRyan, Mar 11, 2009 IP
  14. bbqguy

    bbqguy Active Member

    Messages:
    137
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    68
    #14
    and don't forget about setting your prefered site url in google webmaster tools > sitemap
     
    bbqguy, Mar 11, 2009 IP
  15. freeflyer

    freeflyer Peon

    Messages:
    120
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #15
    ah you mean what you saw before my edit? Yes, but i dont think it will apply in this case as its not a revenue site (which is why i changed the post), so it doesnt really matter. But yes, if this was a commercial site, theres no way i'd risk and entire site redirect at this late stage. The temporary drop is bad enough, but who knows what long term damage could be.
     
    freeflyer, Mar 12, 2009 IP
  16. freeflyer

    freeflyer Peon

    Messages:
    120
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #16

    the best solution for you is exactly what you've done, well done.

    Keep your main domain as htttp://site.com, and redirect from the www version. Your site is already established, possibly with lots of external links goint to the non www version. To now change to the www address is unnecessary and will 100% definite cause drops in the serps for some time to come.
     
    freeflyer, Mar 12, 2009 IP
  17. xantoniox

    xantoniox Active Member

    Messages:
    102
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #17
    ok I have set also in google webmaster tool mysite.com as main domain.

    thanks ^_^
     
    xantoniox, Mar 12, 2009 IP