Changing the admin folder name in PrestaShop is a common security step. Hereβs the correct and safe way to do it.
πΉ Why Change Admin Folder Name?
- Prevent brute-force attacks
- Hide default
/adminURL - Improve basic security
πΉ Step-by-Step: Change Admin Folder Name
β 1. Locate Your PrestaShop Root
Go to your hosting (like File Manager or FTP):
/public_html/
You will see something like:
admin123abc
π PrestaShop already creates a random admin folder during install.
β 2. Rename the Admin Folder
Just rename it to something unique:
admin123abc β mysecurepanel
β Example:
/public_html/mysecurepanel
β 3. Access New Admin URL
Now open:
https://yourdomain.com/mysecurepanel
π Your old /admin or previous URL will NOT work anymore.
β οΈ Important Things to Check
β Update Bookmark
- Save the new admin URL
β Clear Cache (if issue)
Delete:
/var/cache/prod
/var/cache/dev
β Check .htaccess (rare case)
Normally no change needed, but if login fails:
- Regenerate
.htaccessfrom:
Shop Parameters β Traffic & SEO
πΉ If You Forgot Admin Folder Name
Check via:
- FTP / File Manager
- Look for folder starting with
admin
πΉ Advanced (Extra Security Tips)
- Use strong password
- Enable 2FA (via module)
- Restrict admin by IP (in
.htaccess)
Example:
Order Deny,Allow
Deny from all
Allow from YOUR_IP
πΉ Important Warning
β Do NOT rename:
/classes/controllers/modules
Only rename the admin folder
Β
