Jump to content
WebFlake

Renaming the ACP "admin" directory


Guest xkatonsurya

Recommended Posts

Guest xkatonsurya
IP.Board has a dedicated directory for the administration center. To further enhance security, you can rename this ACP directory.
 

Step 1:

 

First, you'll need to physically rename the directory. Connect to your server via FTP and then browse to your IP.Board directory (this is the one that has your index.php file in it). 
Locate the 'admin' directory. Choose 'rename' from your FTP client menu and rename it to whatever you like. 

Step 2: Create a file called 'constants.php'. Download it, open it in a text editor, and paste the following contents.

<?phpdefine( 'CP_DIRECTORY', 'admin' );

 

Replacing the admin with your directory name. Your ACP directory has now been renamed.

Link to comment
Share on other sites

Guest illspirit

Isn't it easier to just edit the initdata.php file? 

if ( !defined( 'CP_DIRECTORY' ) ){	define( 'CP_DIRECTORY', 'admin' );}
  • Upvote 1
Link to comment
Share on other sites

Guest xkatonsurya

Isn't it easier to just edit the initdata.php file? 

if ( !defined( 'CP_DIRECTORY' ) ){	define( 'CP_DIRECTORY', 'admin' );}

 

yes, it's easier if you edit the file initdata.php  :D

Link to comment
Share on other sites

  • 3 months later...
  • 2 weeks later...
Guest Coolvipcandy

Nah constants.php is used for a reason.It will overwrite the defined variables in initdata.php so you will not lose your custom defined variables when updating IP.Board.

 

Thank you very much.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...