If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

OpenCart. How to change admin folder name

OpenCart. How to change admin folder name

This tutorial will show you how to change admin folder name in OpenCart.

Opencart_how_to_change_admin_folder_name_1

  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/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/');
    
  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:

Opencart_how_to_change_admin_folder_name_2

Feel free to check the detailed video tutorial below:

OpenCart. How to change admin folder name