Answer the question
In order to leave comments, you need to log in
Why doesn't auth basic work on files in a directory?
Added
AuthType Basic
AuthName "Login"
AuthUserFile /path/to/.htpasswd
Require valid-user
to .htaccess I go to site.ru/dir - authorization is issued, I go to /dir/file.any_extension - authorization is not issued. I noticed it literally by accident, but it's good that I noticed at least.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question