- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
OpenCart. How to change admin folder name
January 28, 2015
OpenCart. How to change admin folder name
This tutorial will show you how to change admin folder name in OpenCart.
-
Access your server using any ftp client software;
-
Navigate to the server directory that contains ‘admin’ folder (this is your root directory, usually called ‘public_html’ or ‘www’);
-
Change the name of the ‘admin’ folder to any desired one. We will rename it to ‘admin123’;
-
Open the /admin/config.php file with any php/text editor software (remember, you changed the name of the folder. Replace ‘admin’ with the new folder name).
-
There are several instances of ‘admin’ throughout the config file. All instances must be changed for this to work. Below there are instances of admin (marked in bold) you will need to change:
// HTTP define('HTTP_SERVER', 'http://templatetesting.com/opencart/admin/'); define('HTTP_CATALOG', 'http://templatetesting.com/opencart/'); // HTTPS define('HTTPS_SERVER', 'http://templatetesting.com/opencart/admin/'); define('HTTPS_CATALOG', '>http://templatetesting.com/opencart/'); // DIR define('DIR_APPLICATION', '/public_html/opencart/admin/'); define('DIR_SYSTEM', '/public_html/opencart/system/'); define('DIR_DATABASE', '/public_html/opencart/system/database/'); define('DIR_LANGUAGE', '/public_html/opencart/admin/language/'); define('DIR_TEMPLATE', '/public_html/opencart/admin/view/template/'); define('DIR_CONFIG', '/public_html/opencart/system/config/'); define('DIR_IMAGE', '/public_html/opencart/image/'); define('DIR_CACHE', '/public_html/opencart/system/cache/'); define('DIR_DOWNLOAD', '/public_html/opencart/download/'); define('DIR_LOGS', '/public_html/opencart/system/logs/'); define('DIR_CATALOG', '/public_html/opencart/catalog/');
-
There should be 5 instances of /admin/ folder that would need to be updated to the new name you changed the folder to.
Once you are done, you will be able to access OpenCart dashboard using new admin panel path:
Feel free to check the detailed video tutorial below: