PR , with www and with out www...

Discussion in 'Link Development' started by Superior, Oct 28, 2005.

  1. #1
    i have a site. and it advertesd with out www. and it got PR 5,
    not it is PR 5 without "www" and PR 0 with "www"
    please tell me that is it any difference in it.
    and wht u say its value. with "www" and with out www.
     
    Superior, Oct 28, 2005 IP
  2. yfs1

    yfs1 User Title Not Found

    Messages:
    13,798
    Likes Received:
    922
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Those are considered 2 different sites by Google so they can have two different PRs

    You can do a 301 Permanent to join them in Googles eyes

    In your example, the majority of your links point to example.com rather then www.example.com
     
    yfs1, Oct 28, 2005 IP
  3. Old Welsh Guy

    Old Welsh Guy Notable Member

    Messages:
    2,699
    Likes Received:
    291
    Best Answers:
    0
    Trophy Points:
    205
    #3
    Here is a mod rewrite to accomplish the task.


    Options +FollowSymLinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^yourdomain\.com
    RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=permanent,L]
     
    Old Welsh Guy, Oct 28, 2005 IP
  4. theblade24

    theblade24 Active Member

    Messages:
    84
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    73
    #4
    I'm using this with [NC] at the end. Does that make a difference?

    RewriteCond %{HTTP_HOST} ^yourdomain\.com [NC]
    RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]

    Right now in the backlink tracking tool my yourdomain.com has lost it's pagerank to 0 when it was 5 like my www site. Is google not passing pagerank thru 301's anymore?

    Ideas?

     
    theblade24, Oct 28, 2005 IP
  5. Old Welsh Guy

    Old Welsh Guy Notable Member

    Messages:
    2,699
    Likes Received:
    291
    Best Answers:
    0
    Trophy Points:
    205
    #5
    When people say you should use a 301, don't think it is a majic bullet, as it isn't, not instantly anyhow. The problem is that www.domain.com is where the PR goes, then if you have index.html index.php on the server, which one gets the PR? keep in mind that it will default to .html or .htm before it will default to .php .asp etc (by default setup on most servers of course).

    This is one of the reasons you should hard code to whatever it is you are using. (if PR floats your boat of course) :D

    Although the redirect match is instant, it can take many months for the PR to catch up.
     
    Old Welsh Guy, Oct 28, 2005 IP
  6. theblade24

    theblade24 Active Member

    Messages:
    84
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    73
    #6
    Well for years now both have had PR 5 with this setup. All of the sudden no www is 0 and www remains at 5. So something has changed.....

    Noes the [NC] or 301 or Permanent make a difference? Not sure why it is not passing through anymore.....at least that's what DP backlinks page shows.

     
    theblade24, Oct 28, 2005 IP
  7. Dread

    Dread Peon

    Messages:
    323
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Personally i use a php method of forcing the use of the www. on my websites:
    
    <?
    if($_SERVER['HTTP_HOST'] == "dreadlabs.com"){
    	header("Location: http://www.dreadlabs.com/");
    }
    ?>
    
    PHP:
    Im not sure if thats a 301, but it works. Just put it at the very top of your php files.
     
    Dread, Oct 28, 2005 IP
  8. theblade24

    theblade24 Active Member

    Messages:
    84
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    73
    #8
    Not using php.

     
    theblade24, Oct 28, 2005 IP
  9. Dread

    Dread Peon

    Messages:
    323
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #9
    What do you mean "not using php", does that mean YOUR not using php, or thats not a 301, or what?

    I was merely pointing out that thats the way i do it.

     
    Dread, Oct 28, 2005 IP
  10. theblade24

    theblade24 Active Member

    Messages:
    84
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    73
    #10
    Sorry.....I'm not using PHP on my site.

     
    theblade24, Oct 28, 2005 IP
  11. Old Welsh Guy

    Old Welsh Guy Notable Member

    Messages:
    2,699
    Likes Received:
    291
    Best Answers:
    0
    Trophy Points:
    205
    #11
    One of the reasons for the change to your PR might be a server setup. Keep in mind that www.domain.com is an alias, if your hosting setup is to alias them the same then fine, if they are not aliased the same then disparity in PR can result.
     
    Old Welsh Guy, Oct 28, 2005 IP
  12. theblade24

    theblade24 Active Member

    Messages:
    84
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    73
    #12
    I am on a vps, what do I need to tell my host to make sure that yourdomain.com and www.yourdomain.com are aliased the same?

    Perhaps they changed something moving me to a new box or something and it needs to be changed back.

    Can you explain to me what I need to ask them please?


     
    theblade24, Oct 28, 2005 IP