www or not

Discussion in 'Google' started by sairos, Aug 13, 2007.

  1. #1
    Hello everyone, I was browsing google's webmaster tools and I found out that you can select the way google index your site, www.yourdomain.com or just yourdomain.com. I was wondering wich one should I choose :confused:
     
    sairos, Aug 13, 2007 IP
  2. Jerlene.net

    Jerlene.net Prominent Member

    Messages:
    11,975
    Likes Received:
    463
    Best Answers:
    1
    Trophy Points:
    385
    #2
    Whichever you like. You like site.com? Promote it that way. Vice versa.
     
    Jerlene.net, Aug 13, 2007 IP
  3. sairos

    sairos Well-Known Member

    Messages:
    546
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    110
    #3
    thank you :)
     
    sairos, Aug 13, 2007 IP
  4. Pierce

    Pierce Active Member

    Messages:
    634
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    95
    #4
    also make sure you redirect from the one you do not wish to use, to the one you are using.

    ie, 301 redirect from non-www to www

    Google regards this as duplicate content (with + without www) so you have to be careful.

    You can google for the mod-rewrite you need.

    Pierce
     
    Pierce, Aug 13, 2007 IP
  5. sairos

    sairos Well-Known Member

    Messages:
    546
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    110
    #5
    I've chosen to use www so what should I put in my htaccess?
     
    sairos, Aug 13, 2007 IP
  6. maverick

    maverick Peon

    Messages:
    1,191
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #6
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^(.*)\.domain\.com$ [NC]
    RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
     
    maverick, Aug 13, 2007 IP
  7. harsha22

    harsha22 Guest

    Messages:
    200
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Select any of the domains you want to promote. 301 redirect the other domain. Also set the preference in Google webmaster central.
     
    harsha22, Aug 13, 2007 IP
  8. clicker

    clicker Peon

    Messages:
    173
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #8
    what if I have pages indexed under both and change it now to www.site.com only? Will I keep the pages indexed?
     
    clicker, Aug 13, 2007 IP
  9. sairos

    sairos Well-Known Member

    Messages:
    546
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    110
    #9
    sairos, Aug 13, 2007 IP
  10. pctec

    pctec Well-Known Member

    Messages:
    1,623
    Likes Received:
    210
    Best Answers:
    0
    Trophy Points:
    160
    #10
    www is entrenched in everyone's mind... Definitely go with that...
     
    pctec, Aug 13, 2007 IP
  11. mji2010

    mji2010 Active Member

    Messages:
    762
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #11
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    RewriteCond %{HTTP_HOST} ^domain\.com [NC]
    RewriteRule ^(.*) http://www.domain.com/$1 [L,R=301]
    </IfModule>

    I had to add these extra lines in order to make it work for me
     
    mji2010, Aug 13, 2007 IP
  12. bogart

    bogart Notable Member

    Messages:
    10,911
    Likes Received:
    509
    Best Answers:
    0
    Trophy Points:
    235
    #12
    The prefer the www
     
    bogart, Aug 13, 2007 IP
  13. tamar

    tamar Well-Known Member

    Messages:
    68
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    118
    #13
    No they don't. It's totally your discretion to opt-in for www or not.
     
    tamar, Aug 13, 2007 IP
  14. trichnosis

    trichnosis Prominent Member

    Messages:
    13,785
    Likes Received:
    333
    Best Answers:
    0
    Trophy Points:
    300
    #14
    it will not change anythink but www and without www versions of your site must be redirected to one of them
     
    trichnosis, Aug 13, 2007 IP