I have in my /home/sammy/public_html/cache/.htaccess
Options +Indexes
<Files *>
AuthType Basic
AuthName "Authentication Required"
AuthUserFile /home/sammy/public_html/cache/.htpasswd
Require valid-user
</Files>
But I only want the directory listing password protected - not the file itself.
Issue is, when I go to example.test/cache/somefile.pdf
it’s prompting for the username and password.