Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Google page rank Confusion ??


andytc

Recommended Posts

Posted

Hi

 

When i check my page rank with googles toolbar i get the following -

 

www.mydomain.com = page rank 2 (this lands on the same page as the url below?)

 

www.mydomain.com/index.php = page rank 1

 

mydomain.com = page rank 0

 

 

is this normal or is something not setup correctly with my site ?

 

 

any insights appreciated

Posted

It is normal but not good. The search engines treat each url as a separate page. So the following are all different and will get their own page rank.

 

http://mydomain.com

http://mydomain.com/index.php

http://www.mydomain.com

http://www.mydomain.com/index.php

 

That's not good because it splits the total PR for your site. You need to set rid of the usage of index.php and change all references to use either www or not. There are a number of links in the shop that will use these links so you need to be sure to get them all or it will keep happening. Also, if you have any external links to your site (as in link exchanges), they have to be consistent also.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

Thanks Jack , :thumbsup:

 

 

The index.php after the url appears if you click on the sites logo to return to the home page or if you click "home" , which was previously "Top" on a standard install. If someone bookmarks my page they will have the www.mydomain.com/index.php as the bookmark.

 

My includes/config looks like this

 

define('HTTP_SERVER', 'http://www.mydomain.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://mydomain.com'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'mydomain.com');

define('HTTPS_COOKIE_DOMAIN', 'mydomain.com');

 

My admin/includes/config looks like this

 

define('HTTP_CATALOG_SERVER', 'http://mydomain.com');

define('HTTPS_CATALOG_SERVER', 'http://mydomain.com');

 

 

lthe admin ooks different to the catalog/includes config , and i've also just noticed that the admin HTTPS is set as a http://mydomain.com and not https:// , my SSL works in admin and the shop , so i'm not sure if this makes any difference ?

 

I'm totally confused and not sure what to change and where to solve this problem ?

Posted

The secure urls don't matter since they are not looked at by the search engines (or shouldn't be anyway). You need to match these lines though

define('HTTP_SERVER', 'http://www.mydomain.com');
define('HTTP_COOKIE_DOMAIN', 'mydomain.com');

Change one or the other, depending on if you want to use www or not. To remove the links in your header and breadcrumb (as well as all of the continue buttons throguhout your shop), you need to change the reference to FILENAME_DEFAULT to '/'. But you only change those instances where it is referenced by itself (not when a product is being displayed, for example). Plus, you cannot make that change unless your tep_href_link function as been changed for it to work. The best way to make that change is to install the Ultimate SEO contribution since it adds the option of rewriting your urls at the same time.

 

If someone has bookedmarked your page, it doesn't matter since those are private links. But if there is a public link where a search engine can get to it, it needs to be changed. You probably should also put in redirect code so the links are redirected properly and the search engines know that it should be changed. Search the forums for redirecting from www to find the code for that.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

Thanks jack , thats a big help to me.

 

 

I have SEO Urls installed and working but i'm not sure what to add to the htaccess

 

I tried changing FILENAME_DEFAULT to '/' but my page wouldn't load after doing so , currently it's set to 'index.php'

 

 

where would i find the tep_href_link function ?

 

 

I can't test any of this on my test server at the moment as it is off-line , i'll have to wait untill late tonight when there are fewer customers on-line and try it out on the live site.

Posted

No, you shouldn't change the define statement since that will change all instances of index.php and, as mentioned, you shouldn't do that when it is required, as with a product. You need to change it where only FILENAME_DEFAULT is used. Look in incldues/header.php for the logo code and you will see it there. It is also in incldues/application_top.php and the various files with the continue button. If you have Ultimate SEO installed and working, you don't need to edit the tep_href_link function since it has already been done.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

For the www and non www url you can use the following code in your htaccess at root level:

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^yoursite\.com
RewriteRule ^(.*)$ http://www.yoursite.com/$1 [R=permanent,L]

 

This will rewrite all the instances of yoursite.com to www.yoursite.com so the search engines will only see 1 url and keep the rank to the www url.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...