Weird PageRank thing. WHAT'S GOING ON!?

Discussion in 'Google' started by Stefan, May 27, 2006.

  1. #1
    Hey there. I am the owner of the free image hosting site, Image4You and something weird is happening with the PR of the site. If you type in the URL with a 'www.' in front of it, it shows PR as '0', but if you type it in without the 'www.' it shows a PR of '3'. What's going on?

    Here are two links for you to test out on:

    1. WITH 'WWW.' - Image4You

    2. WITHOUT 'WWW.' - Image4You
     
    Stefan, May 27, 2006 IP
  2. Smyrl

    Smyrl Tomato Republic Staff

    Messages:
    13,740
    Likes Received:
    1,702
    Best Answers:
    78
    Trophy Points:
    510
    #2
    Google views them as different sites. You really should try to get all links going to one or the other. The work around is to do a 301 redirect from one to the other.
     
    Smyrl, May 27, 2006 IP
  3. Stefan

    Stefan Well-Known Member

    Messages:
    787
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    110
    #3
    How would I go about doing that?
     
    Stefan, May 27, 2006 IP
  4. NetMidWest

    NetMidWest Peon

    Messages:
    1,677
    Likes Received:
    151
    Best Answers:
    0
    Trophy Points:
    0
    #4
    And the way this is done is to add one of these to your .htaccess file:

    To ensure www:
    RewriteEngine on
    Options +FollowSymLinks
    <IfModule mod_rewrite.c>
    RewriteCond %{HTTP_HOST} ^yourdomain\.com$ [NC]
    RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]
    </IfModule>
    Code (markup):
    To ensure non-www:
    RewriteEngine on
    Options +FollowSymLinks
    <IfModule mod_rewrite.c>
    RewriteCond %{HTTP_HOST} ^www.yourdomain\.com$ [NC]
    RewriteRule ^(.*)$ http://yourdomain.com/$1 [R=301,L]
    </IfModule>
    Code (markup):
     
    NetMidWest, May 27, 2006 IP
  5. Stefan

    Stefan Well-Known Member

    Messages:
    787
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    110
    #5
    Hmm I can't get it to work. Can you please write me an htaccess file and PM it to me? Thanks!
     
    Stefan, May 27, 2006 IP
  6. NetMidWest

    NetMidWest Peon

    Messages:
    1,677
    Likes Received:
    151
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Replacing 'yourdomain' with 'image4you' and '.com' with '.org' should work, but I PM'd a custom file for you. If it still does not work, contact your host and ask them for further instructions. It may need to be set up differently depending on platform and configuration.
     
    NetMidWest, May 27, 2006 IP
  7. rehash

    rehash Well-Known Member

    Messages:
    1,502
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    150
    #7
    even if you don't 301, google will eventually see them as same site and assing same PR..it happened to me on some sites
     
    rehash, May 28, 2006 IP