Knowledge Base Article

How to change OpenCart script folder?

If you want to move your existing OpenCart installation to another folder, you should edit the OpenCartInstallationFolder/ and the OpenCartInstallationFolder/admin/ folders.

The following lines of the OpenCartInstallationFolder/configure.php file should be modified:


// HTTP

define('HTTP_SERVER', 'http://yourdomain.com/newfolder');

define('HTTP_IMAGE', 'http://yourdomain.com/newfolder/image/');

define('HTTP_ADMIN', 'http://yourdomain.com/newfolder/admin/');

// HTTPS

define('HTTPS_SERVER', 'http://
yourdomain.com/newfolder/');

define('HTTPS_IMAGE', 'http://
yourdomain.com/newfolder/image/');

// DIR

define('DIR_APPLICATION', '/home/yourusername/public_html/newfolder/catalog/');

define('DIR_SYSTEM', '/home/yourusername/public_html/newfolder/system/');

define('DIR_DATABASE', '/home/yourusername/public_html/newfolder/system/database/');

define('DIR_LANGUAGE', '/home/yourusername/public_html/newfolder/catalog/language/');

define('DIR_TEMPLATE', '/home/yourusername/public_html/newfolder/catalog/view/theme/');

define('DIR_CONFIG', '/home/yourusername/public_html/newfolder/system/config/');

define('DIR_IMAGE', '/home/yourusername/public_html/newfolder/image/');

define('DIR_CACHE', '/home/yourusername/public_html/newfolder/system/cache/');

define('DIR_DOWNLOAD', '/home/yourusername/public_html/newfolder/download/');

define('DIR_LOGS', '/home/yourusername/public_html/newfolder/system/logs/');

 

In the above lines change the yourdomain.com, yourusername and newfolder strings with your account's domain, cPanel username and the new directory where your OpenCart installation is located.

Perform the same modifications in the OpenCartInstallationFolder/admin/configure.php file.



Rating

Please indicate if this article was helpful for you.

rating :  4.3 from 5
views :  739
votes :  3

Haven't found what you are looking for? Suggest an article HERE.

powered by

Valid XHTML 1.0 Strict Valid CSS!