google showing my website without www in search results

Discussion in 'Google Analytics' started by nehrav, Nov 18, 2009.

  1. #1
    Hi experts,

    google is showing my website without www in google search results.

    Can anybody suggest me, what's the possible reason??

    Thanks
     
    nehrav, Nov 18, 2009 IP
  2. vagrant

    vagrant Peon

    Messages:
    2,284
    Likes Received:
    181
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Have you set how you want it displayed in google webmaster tools ... non-www or www ?

    Also if you want it to display as www. then you can also redirect non-www to www. using .htaccess?
     
    vagrant, Nov 18, 2009 IP
  3. nehrav

    nehrav Peon

    Messages:
    46
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yes I select with www on google analytics settings, but still it gets indexed without www
     
    nehrav, Nov 18, 2009 IP
  4. RewriteArticle.uni.cc

    RewriteArticle.uni.cc Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Have you did Htaccess redirection to www from non www ?
    may be that solves this issue.
     
    RewriteArticle.uni.cc, Nov 18, 2009 IP
  5. nehrav

    nehrav Peon

    Messages:
    46
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I am not aware about htaccess. Plz refer me with an example so that I can have a brief look.

    Thanks
     
    nehrav, Nov 18, 2009 IP
  6. dzflip

    dzflip Banned

    Messages:
    55
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #6
    you can use .htaccess with code below to redirect non-www to www
    RewriteCond %{HTTP_HOST} .
    RewriteCond %{HTTP_HOST} !^www\.example\.com [NC]
    RewriteRule (.*) http://www.example.com/$1 [R=301,L]
     
    dzflip, Nov 18, 2009 IP
  7. mindpower

    mindpower Peon

    Messages:
    55
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    If you use worpress, it's simple to change your url setting. Just go to general setting and change it
     
    mindpower, Nov 19, 2009 IP
  8. onsons2

    onsons2 Peon

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    set a account in google webmaster tool then change setting to cache with www or without www as u want.
     
    onsons2, Nov 19, 2009 IP
  9. nehrav

    nehrav Peon

    Messages:
    46
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I already register with webmasters and there i select

    Site configuration > Settings > Preferred domain : Display URLs as www.mysite.com

    but still it's not worth. Maybe in future, get updated with www
     
    nehrav, Nov 19, 2009 IP
  10. Jectillplum

    Jectillplum Peon

    Messages:
    587
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    you will have to solved your 301 Redirection (Canonical Issue) for your Domain via .htaccess file.

    Options +FollowSymLinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^example\.com
    RewriteRule ^(.*)$ http://www.example.com/$1 [R=permanent,L]

    via this code.
     
    Jectillplum, Nov 20, 2009 IP
  11. nehrav

    nehrav Peon

    Messages:
    46
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #11
    It's showing with www now, that too without any htaccess settings.

    I think it takes time to update in google.

    Thanks everyone for your precious time.
     
    nehrav, Nov 21, 2009 IP
    vagrant likes this.