- #1
Thread Owner
: elboriyorker
1. Add this to the .htaccess file, change path as needed.
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.
PHP:
<Files admin.php><br>AuthType Basic<br>AuthName "Restricted Area"<br>AuthUserFile /home/username/public_html/.htpasswd<br>Require valid-user<br></Files>
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.