In PrestaShop, you can change the name of the admin folder by following these steps:
Log in to your hosting account and navigate to the directory where PrestaShop is installed.
Locate the “admin” folder and rename it to the desired name. It is recommended to choose a name that is difficult to guess.
Open the “config/config.inc.php” file located in the root directory of your PrestaShop installation.
Find the following line of code:
less
define(‘_PS_ADMIN_DIR_’, getcwd() . ‘/admin/’);
Replace “admin” with the new name of your admin folder.
Save the changes to the config.inc.php file.
You should now be able to access the back office of your PrestaShop site using the new URL, with the new name of the admin folder.
Note:
Make sure that the new folder name you choose does not contain spaces or special characters.
Also, it is recommended to back up your site before making any changes.
It is also important to update the .htaccess file that is located in the root directory of your PrestaShop installation if you use it, to reflect the new name of the admin folder.
You may need to adjust the settings of your web server or hosting account to ensure that the new admin folder is accessible.
Keep in mind that this process may affect the functionality of some modules, so make sure to check the site after the process and make any necessary adjustments.
This process will help you to increase the security of your website by making it harder for attackers to guess the URL of your admin panel.