Hello, I want a password to be protected by one of my controllers in the encoder. This is the code in .htaccess
<Files my_controller.php>
AuthName "my_controller.php"
AuthType Basic
AuthUserFile /home2/afolder/.htpasswds/.htpasswd
require valid-user
</Files>
the problem is that myController.php will appear in my url as /my_controller/(no.php), so protection has no effect ... can I do something to overcome this problem? thanks in advance
source
share