Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Loading images from different domain


logo

Recommended Posts

Hello.

 

I can not figure out how to change the tep_get_image code or tep_href_link functions on order to serve my product images from different domain.

 

I tried to write the full path in the cofigure.php:

 

Changed:

 

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

 

to

 

define('DIR_WS_IMAGES', 'www.img-domain.com/images/');

 

But the result url was something like www.main-domain.com/www.img-domain.com/images/img.jpg

 

How and where can I replace the result url so that the final result would be www.img-domain.com/images/img.jpg

 

Thank you

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...