M
midlandi
Guest
Why does my website have a higher PR with the 'www' then without it?
Google sees your website with the 'www' (http://www.example.com) as a different page the without (http://example.com). Pages that link to the page without the 'www' are hurting your pages with the 'www' as the PR is essentially being split between the two pages. Fortunately this is easy to fix. Use a 301 redirect to redirect Google, and everyone else, to the 'www' page from the non 'www' page. The code would look similar to this (mod_rewrite required):
Code:
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} !^(www\.|$) [NC]
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
To go from the 'www' to non 'www' use this code:
Code:
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST}//s%{HTTPS} ^www\.(.*)//((s)on|s.*)$ [NC]
RewriteRule ^ http%3://%1%{REQUEST_URI} [L,R=301]
An even easier way to do this is to use Google Webmaster Tools (a.k.a. Google SiteMaps). There is an option to force Google always use the 'www' or to always remove the 'www'.
Google sees your website with the 'www' (http://www.example.com) as a different page the without (http://example.com). Pages that link to the page without the 'www' are hurting your pages with the 'www' as the PR is essentially being split between the two pages. Fortunately this is easy to fix. Use a 301 redirect to redirect Google, and everyone else, to the 'www' page from the non 'www' page. The code would look similar to this (mod_rewrite required):
Code:
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} !^(www\.|$) [NC]
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
To go from the 'www' to non 'www' use this code:
Code:
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST}//s%{HTTPS} ^www\.(.*)//((s)on|s.*)$ [NC]
RewriteRule ^ http%3://%1%{REQUEST_URI} [L,R=301]
An even easier way to do this is to use Google Webmaster Tools (a.k.a. Google SiteMaps). There is an option to force Google always use the 'www' or to always remove the 'www'.