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.
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
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]
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?
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) Although the redirect match is instant, it can take many months for the PR to catch up.
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.
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.
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.
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.
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?