Password protecting a directory and all of it's subfolders using .htaccess AuthType Basic AuthName "restricted area" AuthUserFile /path/to/the/directory/you/are/protecting/.htpasswd require valid-user Options Indexes FollowSymLinks MultiViews AllowOverride All