How to rename the "admin123" folder

To ensure an excellent safety and protect the administration of your site, you can rename the "admin123" folder.

To do this, rename the folder with the name of your choice, then edit the file ~/YOUR_PROTECTED_FOLDER/app/configs/constants.php and change

define('PH7_ADMIN_MOD', 'admin123');

by the new admin folder name.

Finally, since pH7CMS, v12.1), all URL lookups are cached for optimization purpose.

Because of that, you will also have to to delete the "~/YOUR-PROTECTED-FOLDER/data/cache/pH7_cache/str/uri/" folder in order to take into account the new admin URL.
This folder will be regenerated and the URIs cached recreated.

 


Found a Typo/Something to Add? Edit this page