Easy one 👍 Changing the PrestaShop admin folder name is actually recommended for security. Here’s the safe, correct way (PS 1.7 & 8.x).
✅ Why Change Admin Folder Name?
- Hides
/adminfrom bots - Reduces brute-force attacks
- Improves store security
🔁 Step-by-Step: Change Admin Folder Name
1️⃣ Go to Your Store Root (via Hosting / FTP)
Example folders:
admin
app
classes
config
modules
themes
2️⃣ Rename the Admin Folder
Rename:
admin
to something unique, for example:
admin_shahab_92
admin_secure
backoffice_xyz
📌 Do NOT use spaces or special characters
3️⃣ Open the New Admin URL
Open in browser:
https://yourdomain.com/admin_shahab_92
✔ PrestaShop will automatically detect the new folder
✔ No config file editing needed
4️⃣ Bookmark the New URL ⭐
PrestaShop does not show the admin URL anywhere else.
⚠️ Important Things to Know
❌ Old /admin URL
- Will stop working
- You’ll get a 404 or redirect
❌ Don’t Rename These Files
Inside admin folder, do not rename files like:
index.php
.htaccess
Only rename the folder name, nothing inside.
🔐 Extra Security Tips (Highly Recommended)
✔ Protect Admin with .htaccess
Add password protection or IP restriction.
✔ Enable Two-Factor Authentication
Back Office:
Configure → Advanced Parameters → Administration
✔ Use a Strong Folder Name
Avoid:
admin123
admin_new
Use:
bo_9xA3_secure
🧯 Common Problems & Fixes
🔴 Admin page not opening?
Try:
- Clear cache:
/var/cache/prod
/var/cache/dev
- Check file permissions:
755 folders
644 files
🔴 500 Internal Server Error?
- Restore original name
- Check
.htaccess - Enable debug mode:
define('_PS_MODE_DEV_', true);
🔴 Forgot admin folder name?
Check database:
SELECT value FROM ps_configuration WHERE name='PS_BO_ALLOW_EMPLOYEE_FORM_LANG';
OR check hosting file manager 😉
✅ Final Checklist
✔ Folder renamed
✔ New URL opens
✔ Admin login works
✔ Bookmark saved
