What's new
AMJ Bulletin Board

[NEW] How to .htpasswd the admin.php file

elboriyorker

Administrator
Staff member
OG Member
1. Add this to the .htaccess file, change path as needed.

PHP:
<Files admin.php><br>AuthType Basic<br>AuthName "Restricted Area"<br>AuthUserFile /home/username/public_html/.htpasswd<br>Require valid-user<br></Files>

1656552701409.jpg


2. Go to terminal.
3. Enter the following to add or change username and password:

htpasswd -c /home/username/public_html/.htpasswd Andy

4. Enter password.
 
Back
Top