With www and with out www, I need HELP

Discussion in 'Search Engine Optimization' started by princess.donna, May 14, 2008.

  1. #1
    Hello everyone.

    Sorry for this newbie question. I'm just confused.

    I have a month old site. When I checked Google for the indexed pages of my site, I wonder why it gives different results when i include www and when i don't include www.

    It's like this when I searched for index pages and using this code site:http://mysite.com -- It gives all the indexed pages of the site BUT if i searched using the code site:http://www.mysite.com -- It gives no result at all :(

    Please help me.

    Thank You.
     
    princess.donna, May 14, 2008 IP
  2. webcosmo

    webcosmo Notable Member

    Messages:
    5,840
    Likes Received:
    153
    Best Answers:
    2
    Trophy Points:
    255
    #2
    You can do a 301 redirect to the www. You can use .htAccess for that if you are using Linux. For windows the method is little different.
     
    webcosmo, May 14, 2008 IP
  3. cicero

    cicero Peon

    Messages:
    159
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Princess, if you had registered with google as "http://site.com" , you would be able to seeonly non www. results. Panic not as webcosmo has already given a good suggestion.

    I would also suggest you stick with one method while registering your site for ads, link building,etc. Else it may go over your head.
     
    cicero, May 14, 2008 IP
  4. astup1didiot

    astup1didiot Notable Member

    Messages:
    5,926
    Likes Received:
    270
    Best Answers:
    0
    Trophy Points:
    280
    #4
    You need to properly 301 redirect the non-www URL format to the www format. Please insert the below code into your .htaccess file and it's done! Change yourdomain.com to your site leaving all variables intact.

    
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^yourdomain\.com$ [NC]
    RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]
    
    Code (markup):
     
    astup1didiot, May 14, 2008 IP
  5. webcont247365

    webcont247365 Peon

    Messages:
    143
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hi,

    I think this SEO Article will help you finding more information regarding your question.

    Your comments are always welcome.

    Thanks,
     
    webcont247365, May 14, 2008 IP
  6. GreatDomainRace

    GreatDomainRace Peon

    Messages:
    129
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Whatever you choose, stick to it. If you do mysite.com, make sure all your backlinks follow that format
     
    GreatDomainRace, May 14, 2008 IP
  7. davcheong

    davcheong Well-Known Member

    Messages:
    1,148
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    175
    #7
    davcheong, May 14, 2008 IP
  8. sprabhu

    sprabhu Peon

    Messages:
    586
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #8
    redirect your website either with www or without www, also dont forget to use your full url while getting back links.
     
    sprabhu, May 14, 2008 IP
  9. Sem-Advance

    Sem-Advance Notable Member

    Messages:
    6,179
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    230
    #9
    Actually you cannot control how people link to you ....so the post above is a bit off base.

    As ssandecki explained if youre on a Linix Unix server you can use your .htaccess file to resolve canonical URL (its not truly a 301)


    By using this method all links to your site are forced to your full or absolute URL http: //www. yoursite .com which will solidify your PageRank as well as help with SERP rankings in time, and under the assumption that all other SEO steps have been done.

    If you are on a Windoze server you would need an Isappi rewrite.....

    :)
     
    Sem-Advance, May 14, 2008 IP
  10. casinouk

    casinouk Peon

    Messages:
    279
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Oh thanks SEM Advance, for the source code of .htaceess file for redirection..
     
    casinouk, May 14, 2008 IP
  11. Sem-Advance

    Sem-Advance Notable Member

    Messages:
    6,179
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    230
    #11
    Actually I didnt post it ssandecki did, and we both learned it from W3C or Apache I believe.

    It is not a redirect however....it is a resolver so to speak....you will never see any other form of the URL in the browser address bar but the absolute URL once implemented.

    With a redirect you would see the original referring url, then the destination url would appear.
     
    Sem-Advance, May 14, 2008 IP
  12. onlinestudio

    onlinestudio Peon

    Messages:
    237
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Hey everyone I found this thread and was wondering... I had my site using non-www urls and used the steps to force the www in there. so now all urls are forced to the www version but when I hover over an internal link it says I am going to non www (i hope this makes sense)... My question is "is this bad, is google going to index the link as it is hovered over or the destination url?
     
    onlinestudio, May 14, 2008 IP
  13. Sem-Advance

    Sem-Advance Notable Member

    Messages:
    6,179
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    230
    #13
    You are hovering over the links on an html page and they are not written out as absolute URLs in your code.

    Absolute = http://www.

    Relative = anything else.

    Google will follow the link......it does not index links.

    In doing so it will see the URL should be in the absolute form.
     
    Sem-Advance, May 14, 2008 IP
    cchetanonline likes this.
  14. mberman84

    mberman84 Peon

    Messages:
    511
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #14
    yes, you will get different results for www. and non-www versions of your site.

    any difference in URL will cause google to see two different pages.

    you need to do a 301 redirect from one to another. it doesnt matter which one you choose, you just have to be consistent. also, go into google webmaster tools and set your preferred domain.
     
    mberman84, May 14, 2008 IP
  15. cchetanonline

    cchetanonline Banned

    Messages:
    2,143
    Likes Received:
    244
    Best Answers:
    0
    Trophy Points:
    0
    #15
    i m facing the same problem
    lets hope this thread will solve my problem too :D
     
    cchetanonline, May 14, 2008 IP
  16. Sem-Advance

    Sem-Advance Notable Member

    Messages:
    6,179
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    230
    #16
    If you use the htaccess method of resolving the canonical URL there is no reason to use google webmaster tools.... and at times using google webmaster tools will screw Google up more than help....
     
    Sem-Advance, May 14, 2008 IP
  17. mberman84

    mberman84 Peon

    Messages:
    511
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #17
    didnt know that.

    i always use it just to make sure google sees my redirect right away.
     
    mberman84, May 14, 2008 IP
  18. MeetHere

    MeetHere Prominent Member

    Messages:
    15,399
    Likes Received:
    994
    Best Answers:
    0
    Trophy Points:
    330
    #18
    I need a help too. I have a site with http://yourdomain.com , and indexed on google with such domain. But not indexed with www.yourdomain.com

    I am afraid of doing above redirect as i think google will reindex the site - Will this remove my pagerank if I redirect the non-www to www ?

    Can i do redirect of www to non-www ?
    please help.
     
    MeetHere, May 14, 2008 IP
  19. onlinestudio

    onlinestudio Peon

    Messages:
    237
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #19
    so just so I can sleep at night... If using htaccess method and after clicking on a link (non-www or www version) it ends up at www.site.com, google sees all links as www? Thanks for help guys.
     
    onlinestudio, May 14, 2008 IP
  20. mberman84

    mberman84 Peon

    Messages:
    511
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #20
    yes you can do a redirect of www to non-www. you just have to stay consistent. if i come across a site that is already ranked well for non-www and not for www...i always stick with the best.
     
    mberman84, May 14, 2008 IP