I do this maybe twice a year.
To create a new htpasswd file:
- Using the command line / terminal, go to the directory you want to protect then type:
user$ htpasswd -c .htpasswd YourUsername - Type the password twice
To update an existing htpasswd file with a new password for an existing user:
- Using the command line / terminal, go to the directory you where the .htpasswd file exists then type:
user$ htpasswd .htpasswd YourUsername - Type the password twice
No comments:
Post a Comment