How to change admin folder name in Open Cart

How to change admin folder name

  1. Access your server using any ftp client software;
  2. Navigate to the server directory that contains ‘admin’ folder (this is your root directory, usually called ‘public_html or ‘www’);
  3. Change the name of the ‘admin’ folder to any desired one. We will rename it to ‘admin123’;
  4. 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).
  5. 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/<strong>admin</strong>/');
define('HTTP_CATALOG', 'http://templatetesting.com/opencart/');
// HTTPS
define('HTTPS_SERVER', 'http://templatetesting.com/opencart/<strong>admin</strong>/');
define('HTTPS_CATALOG', '>http://templatetesting.com/opencart/');
 
// DIR
define('DIR_APPLICATION', '/public_html/opencart/<strong>admin</strong>/');
define('DIR_SYSTEM', '/public_html/opencart/system/');
define('DIR_DATABASE', '/public_html/opencart/system/database/');
define('DIR_LANGUAGE', '/public_html/opencart/<strong>admin</strong>/language/');
define('DIR_TEMPLATE', '/public_html/opencart/<strong>admin</strong>/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/');

6. 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.

 

Was this article helpful?

Related Articles

Leave A Comment?

You must be logged in to post a comment.