Categories

Featured templates

OpenCart. How to change admin folder name

Daniel Morales January 28, 2015
Rating: 5.0/5. From 1 vote.
Please wait...


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

OpenCart Responsive Themes
This entry was posted in OpenCart Tutorials and tagged admin, folder, name, opencart. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket