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
