So instead of:
Code: Select all
http://www.mysite.com/shop/
http://www.mysite.com/shop/image/
Code: Select all
http://www.mysite.com/shop/
http://image.mysite.com/
1. Goto your webhost's cpanel and click the "Subdomains" area
2. Setup a new subdomain called "image.mysite.com". (replace "mysite" with your real site)
3. Setup the redirect for that subdomain to point to your current store url to the image path
(e.g. http://www.mysite.com/shop/image/)
Now you have setup the subdomain to point directly to your store image folder. Now you will want to set the new subdomain in opencart.
For 1.5.x:
1. EDIT: config.php
2. CHANGE (for example):
Code: Select all
define('HTTP_IMAGE', 'http://www.mysite.com/shop/image/');
Code: Select all
define('HTTP_IMAGE', 'http://image.mysite.com/');
3. CHANGE (for example):
Code: Select all
define('HTTPS_IMAGE', 'https://www.mysite.com/shop/image/');
Code: Select all
define('HTTPS_IMAGE', 'https://image.mysite.com/');
For 1.4.x:
1. EDIT: index.php
2. CHANGE:
Code: Select all
define('HTTP_IMAGE', HTTP_SERVER . 'image/');
Code: Select all
define('HTTP_IMAGE', 'http://image.mysite.com/');
3. CHANGE:
Code: Select all
define('HTTPS_IMAGE', HTTPS_SERVER . 'image/');
Code: Select all
define('HTTPS_IMAGE', 'https://image.mysite.com/');
In both versions, be sure you keep the trailing slash "/" at the end of the urls