Serving Images From A Subdomain

Does anyone have idea of required configuration to serve images from a subdomain say images.mydomain.com?

Any add-ons that could help?

1 Like

Hello therem,
there is another topic here:
https://forum.cs-cart.com/t/how-to-change-image-path-to-a-subdomain/38573
that says:

“There are more ways to modify the url but the simple and fastest is:
#on file config.php
replace:
$config[‘images_path’] = $config[‘current_path’] . ‘/images/’;
to:
$config[‘images_path’] = ‘http://images.ourwebsite.com’ . ‘/images/’;
I hope that helps,”

If you find another solution or you emplemanted something, please let me know!

2 Likes

Just curious - what would you like to achieve by serving images from another domain? Do you want to speed up the website this way?

Hello everyone,
someone who managed to do that ? Is this so defficult and lots of mods to do that ? Suposed I could managed to display the images via a subdomain what are the modification codes shoud be made so I could SAVE the images inside a product and so on (banners, promo etc)?