htaccess examples

Create Password Database

The -c option creates the file, -b reads password from command line

htpasswd -c /path/to/file username
htpasswd -bc /path/to/file username password