Zencart a different domain name site in the same space using the same images, you can use the following methods to invoke a picture of the same site in the same space. shop1.com shop2.com Pictures folder: shop1/images/shop2.com reference shop1.com Pictures ZEN
Zencart a different domain name site in the same space using the same images, you can use the following methods to invoke a picture of the same site in the same space. Shop1.com Shop2.com Picture folder: shop1/images/ Shop2.com referring to shop1.com pictures
ZEN cart default is the relative path, change to absolute path can also, to change two files.
(1) need to be in admin/includes/configure.php Will Define (' Dir_ws_catalog_images ', http_catalog_server. Dir_ws_catalog. ' images/'); Switch Define (' Dir_ws_catalog_images ', http_catalog_server. Dir_ws_catalog. ‘.. /shop1/images/'); If it is in the root directory, instead: Define (' Dir_ws_catalog_images ', http_catalog_server. Dir_ws_catalog. ‘.. /images/');
(2) need to be in includes/configure.php Will Define (' Dir_ws_images ', ' images/'); Switch Define (' dir_ws_images ', ' ... /shop1/images/'); If it is in the root directory, instead: Define (' dir_ws_images ', ' ... /images/'); PS: Must be under the same IP. Different IPs are not callable. Enterprise Templates Web site |
Zencart use the same images for different domain name sites in the same space