Forum Moderators: Robert Charlton & goodroi

Message Too Old, No Replies

Different Page Rank on same page

Why this?

         

Lobo

11:37 pm on Aug 8, 2006 (gmt 0)

10+ Year Member



My newly launched site has just received it's first page rank on G ..

But can someone explain why this page rank is on www.mydomain.com/ but not on www.mydomain.com/index.php

tedster

12:52 am on Aug 9, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Page Rank is assigned to a url, and not to a "page" -- page is a common language word and not a technical term. Even though these two urls (one with just the domain root, and one including index.php) are resolved to the same content on your domain, they are two different urls and they technically COULD be pointing to different content.

There are many discussions here about this issue and how to fix it. The most important thing you can do is to make sure all your "Home" links point to the simple domain root, ending with a final slash. That is:

<a href="http:www.example.com/">Home</a>

In addition you may want to check out this thread:

Merging www.example.com/ and www.example.com/index.htm [webmasterworld.com]

g1smd

1:15 am on Aug 9, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Many sites usually find the PR on index.html and the other one listed in Google SERPs.

You are lucky . Google has got the PR on the right one. Now make sure that every page of the site links back to http://www.domain.com/ in exactly that format, before Google changes its mind.

While you are there, get a site-wide 301 redirect from non-www to www installed too.

Lobo

2:42 am on Aug 9, 2006 (gmt 0)

10+ Year Member



Had the 301 redirect set up before I even loaded the site...

My site is set relative to document and not to root.

note* is this really Search News?

[edited by: Lobo at 2:43 am (utc) on Aug. 9, 2006]

g1smd

11:08 am on Aug 9, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



>> My site is set relative to document and not to root. <<

That is not what I said.

Make sure that every page of your site links back to the root using this exact code:

<a href="http://www.domain.com/">Home</a>

but using whatever anchor text you actually need.

trillianjedi

11:12 am on Aug 9, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



note* is this really Search News?

Anything related to Google goes in here.

As others have pointed out above, the two URL's are considered to be totally different by google. A 301 of /index.html to / will ensure that it all ends up resolving to the one place.

TJ

Lobo

2:18 am on Aug 13, 2006 (gmt 0)

10+ Year Member



Yip I went with the

RewriteCond %{THE_REQUEST} ^.*\/index\.php
RewriteRule ^(.*)index\.php$ [yourdomain.com...] [R=301,L]

option.. it works a treat ...

g1smd

2:05 pm on Aug 13, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Now make sure that your internal links point to http://www.domain.com/ in exactly that format.

Specifically, include the trailing / and omit the index.html from that link.

Lobo

12:47 am on Aug 15, 2006 (gmt 0)

10+ Year Member



Like I say it works a treat .. and that'll be .php