Google indexing without the WWW

Discussion in 'Google' started by Seobiznezz, Jul 31, 2007.

  1. #1
    Google is picking up my site but unlike everyone elses they are indexing it without the www so it looks like mysite.com/page1.htm instead of www.mysite.com/page1.htm

    Does this matter? This is the first time this has happened to me. What did I do wrong this time?

    Will I get a duplication penalty?
     
    Seobiznezz, Jul 31, 2007 IP
  2. cianuro

    cianuro Peon

    Messages:
    1,857
    Likes Received:
    106
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Use webmaster central to set your preferred URL to www.yoursite.com

    Also, make sure you set up a .htaccess redirect from non www to www.
     
    cianuro, Jul 31, 2007 IP
  3. tonyrocks

    tonyrocks Active Member

    Messages:
    1,574
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    88
    #3
    Hey cianuro,
    Can you give an example from your .htaccess file to redirect non www to www?
     
    tonyrocks, Jul 31, 2007 IP
  4. cianuro

    cianuro Peon

    Messages:
    1,857
    Likes Received:
    106
    Best Answers:
    0
    Trophy Points:
    0
  5. tonyrocks

    tonyrocks Active Member

    Messages:
    1,574
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    88
    #5
    oh man...that site is nice! good info on all kinds of stuff...including videos of arbitrage! Thanks for the link. rep rep
     
    tonyrocks, Jul 31, 2007 IP
  6. kpraveenkumars

    kpraveenkumars Peon

    Messages:
    70
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Goto Google Webmaster Central and authenticate your website and choose preferred domain as www.domain.com
     
    kpraveenkumars, Jul 31, 2007 IP
  7. lijgeo

    lijgeo Banned

    Messages:
    647
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #7
    go to google sitemaps and ad your site there.
     
    lijgeo, Jul 31, 2007 IP
  8. mji2010

    mji2010 Active Member

    Messages:
    762
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #8
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^domain\.com [NC]
    RewriteRule ^(.*) http://www.domain.com/$1 [L,R=301]

    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.php\ HTTP/
    RewriteRule ^(([^/]+/)*)index\.php$ http://www.domain.com/$1 [R=301,L]
    </IfModule>

    the first rule redirects non www to www and the second one redirects domain.com/index.php to domain.com
     
    mji2010, Jul 31, 2007 IP
  9. kazama

    kazama Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Thank mji2010. I have a problem with www for few months.
     
    kazama, Jul 31, 2007 IP
  10. mji2010

    mji2010 Active Member

    Messages:
    762
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #10
    no problem...
     
    mji2010, Jul 31, 2007 IP
  11. Seobiznezz

    Seobiznezz Peon

    Messages:
    496
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Is this hurting me though having the site indexed without the www?

    Does it really matter or is Google smart enough to realize that it is the same site?
     
    Seobiznezz, Jul 31, 2007 IP
  12. rolypoly

    rolypoly Active Member

    Messages:
    150
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #12
    i suggest do a 301 redirect to point to your www. site
     
    rolypoly, Jul 31, 2007 IP
  13. mjesales

    mjesales Peon

    Messages:
    326
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Good info.

    Definately do a 301 from the non www to the www

    don't forget to do a 301 from the www.domain.com to www.domain.com/

    the trailing slash can be a factor as well.

    in the google webmaster central you can set whether you want google to set the results as the www or not www.
     
    mjesales, Jul 31, 2007 IP
  14. Seobiznezz

    Seobiznezz Peon

    Messages:
    496
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #14
    As the original poster can anyone confirm my original question.

    Can this actually hurt your rankings? Is it fine to leave as it is?
     
    Seobiznezz, Aug 1, 2007 IP
  15. Doc Magnus

    Doc Magnus Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Use your DNS control panel with your provider and add the www record (A record)

    You really want to be indexed with the www and without
     
    Doc Magnus, Aug 1, 2007 IP
  16. trichnosis

    trichnosis Prominent Member

    Messages:
    13,785
    Likes Received:
    333
    Best Answers:
    0
    Trophy Points:
    300
    #16
    the best way is redirecting without www option to with www option.

    add the code to your .htaccess file which is given above
     
    trichnosis, Aug 1, 2007 IP