My site is indexed without www in Google. What I should do ?

Discussion in 'Google' started by mcgillteak, Jan 23, 2011.

  1. #1
    Hi I m new here.
    I have my site http://mcgillteak(dot)com but its appearing in Google without www.
    What I should do now ? Its having PR 2.
    Please help me.

    Thanks in advance.
     
    mcgillteak, Jan 23, 2011 IP
  2. deltagci

    deltagci Peon

    Messages:
    636
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    First you need to 301 redirect with www.
     
    deltagci, Jan 23, 2011 IP
  3. mcgillteak

    mcgillteak Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi thanks for reply.
    I have developed my site in asp.net.
    I don't know how to do 301 redirect. Can you please explain how its done ?

     
    mcgillteak, Jan 23, 2011 IP
  4. stephenz

    stephenz Peon

    Messages:
    175
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Maybe it'a a domain error issue. It's better to check your DNS if it works right.
     
    stephenz, Jan 24, 2011 IP
  5. Imdadc

    Imdadc Peon

    Messages:
    617
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Imdadc, Jan 24, 2011 IP
  6. Balendra Singh

    Balendra Singh Active Member

    Messages:
    109
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    55
    #6
    Redirect to www (htaccess redirect)

    Create a .htaccess file with the below code, it will ensure that all requests coming in to domain.com will get redirected to www.domain.com
    The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)

    Options +FollowSymlinks
    RewriteEngine on
    rewritecond %{http_host} ^domain.com [nc]
    rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]

    Please REPLACE domain.com and www.newdomain.com with your actual domain name.

    Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled.
     
    Balendra Singh, Jan 24, 2011 IP
  7. mcgillteak

    mcgillteak Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Thanks to all for your help. Its done.

    Can anyone tell me after how many days I can see that my site is redirected permanently.
    Because still its showing without www.
     
    Last edited: Jan 24, 2011
    mcgillteak, Jan 24, 2011 IP
  8. BigMediaBlogging

    BigMediaBlogging Peon

    Messages:
    100
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    use a 301 redirect to point none www url to www
     
    BigMediaBlogging, Jan 24, 2011 IP
  9. Rodeger

    Rodeger Greenhorn

    Messages:
    69
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #9
    Also don't forget to write the right host in robots.txt file.
     
    Rodeger, Jan 24, 2011 IP
  10. mcgillteak

    mcgillteak Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Hi Rodeger,
    Thanks for reply. But can you please tell me how I can write robots.txt because I haven't yet specified anything in robots.txt..
     
    mcgillteak, Jan 24, 2011 IP
  11. indian_seo

    indian_seo Peon

    Messages:
    231
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #11
    this problem can be solved in Google Webmaster Tool

    Site Configuration > Settings

    Hope it helps
     
    indian_seo, Jan 24, 2011 IP
  12. pointsense

    pointsense Peon

    Messages:
    55
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    agreed

    you should try this one,
     
    pointsense, Jan 24, 2011 IP