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
Β
