XenForo Changing the Xenforo Admin.php Path

CR LEAKS

Administrators
Joined
Mar 25, 2022
Messages
1,485
Credits
28,051
Step 1 :
  • Open src / config.php and add the code below to the bottom

Step 2 :
  • Change the name "admin.php" in ftp root directory to "ssl_admin"

Step 3 :

Code:
$c['router.admin.formatter'] = $c->wrap(function($route, $queryString){
$suffix = $route . (strlen($queryString) ? '&' . $queryString : '');
return strlen($suffix) ? 'ssl_admin.php?' . $suffix : 'not_admin.php';
});
 
Back
Top Bottom