Forum Moderators: open

Message Too Old, No Replies

PR different for www.mydomain.com and mydomain.com

Same site appears to be interpreted as two sites by Google

         

vdlddd8379

7:21 am on Aug 18, 2003 (gmt 0)

10+ Year Member



Has anyone else noticed that their Page Rank is different if they type in www.mydomain.com (mine is PR5) vs. mydomain.com (mine is PR3) into the Google toolbar? The number of links shown for www.mydomain.com is also different from mydomain.com.

I'm not sure why Google would interpret www and non-www as two distinct sites to rank independently. Did I do something dumb that caused this to happen? By the way, this was not the case before Dominic update. Not sure if that is coincidental. Is there something I should do to synchronize the two domain variations? I appreciate any insights. Thanks.

takagi

3:34 pm on Aug 19, 2003 (gmt 0)

robertito62

4:05 pm on Aug 19, 2003 (gmt 0)

10+ Year Member



short answer:
use mod rewrite to consolidate all in one of the 2 URLs.

kevinpate

4:21 pm on Aug 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Assuming you're a *nix based site, adding the following, (replacing the example domain with your actual domain of course), in your root directory's .htacess file will cause all domain.tld requests to end up at www.domain.tld

If you're not familiar with .htaccess, and even if you are, keep a backup copy of the original handy so you can start over if you goof something (been there, done that, got the t-shirt. batting 500 ain't fun if it's an error code, lol

RewriteEngine On
RewriteCond %{HTTP_HOST}!^www.domain.TLD [NC]
RewriteRule ^(.*)$ [domain.TLD...] [R,L]