I figured out how to do it !: D
First Place in a PHP-generated directory for those who do not have an index page:
DirectoryIndex default.php index.php index.html /php_directory.php
Then just password protect the file php_directory.php!
AuthUserFile /full/path/here/.htpasswd
AuthType Basic
AuthName "Log in"
Thanks for your comments! (which helped me get to this)
source
share