My opencart is installed on www.example.com/opencart/
I changed the config.php and admin/config.php as follows:
Code: Select all
// HTTP
define('HTTP_SERVER', 'http://example.com/opencart/');
// HTTPS
define('HTTPS_SERVER', 'https://example.com/opencart/');
// DIR
define('DIR_APPLICATION', '/home/example/public_html/opencart/catalog/');
define('DIR_SYSTEM', '/home/example/public_html/opencart/system/');
define('DIR_DATABASE', '/home/example/public_html/opencart/system/database/');
define('DIR_LANGUAGE', '/home/example/public_html/opencart/catalog/language/');
define('DIR_TEMPLATE', '/home/example/public_html/opencart/catalog/view/theme/');
define('DIR_CONFIG', '/home/example/public_html/opencart/system/config/');
define('DIR_IMAGE', '/home/example/public_html/opencart/image2/');
define('DIR_CACHE', '/home/example/public_html/opencart/system/cache/');
define('DIR_DOWNLOAD', '/home/example/public_html/opencart/download/');
define('DIR_LOGS', '/home/example/public_html/opencart/system/logs/');
Code: Select all
http://example.com/opencart/image/data/Logos/logo.png
Then the image url is still:
Code: Select all
example.com/opencart/image/data/Logos/logo.png
Code: Select all
example.com/opencart2/image/data/Logos/logo.png
Anyway, the reason I'm doing this is that I want two opencart shops sharing the same image folder. So: Shop 1:
Code: Select all
/home/example/public_html/opencart/
Code: Select all
/home/example/public_html/opencart2/
Code: Select all
/home/example/public_html/image/
Thanks in advance
DQFanSurvey