Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Image links in google cache


pages

Recommended Posts

Posted

Hello,

 

I have a problem whith the look of my pages in google's cache. I'm using oscommerce 2.2 with "Use Search Engine Safe URLS "on" in "Configuration >> My Store".

 

Here is an exemple of what there happens:

 

Let's take an url. This will look like

"http://www.mysite.com/product_info.php/cPath/20/products_id/500"

 

At google's cache, image don't show up because they link to

"http://www.mysite.com/product_info.php/cPath/20/products_id/500/images/product_500.jpg"

instead of the correct path which should be

"http://www.mysite.com/images/product_500.jpg

 

A right clik + properties on the google-cachede image gives "images/product_500.jpg"

 

Of course in the "real" page, everything looks right at its right place.

 

My configure.php is like this:

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

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_INCLUDES', 'includes/');

and so on... I don't see anythink special there...

 

Should I put a "/" before "images/" ? I indeed changed to

define('DIR_WS_IMAGES', '/images/');

and I'm waiting to see the results, I hope it will correct it but it doesn't seems me the origin of the problem.

 

I'm not sure because I didn't remark that before, but I think this happens since I moved the site to a new server.

 

Any ideas, explanations, fixes ?

Archived

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

×
×
  • Create New...