i'm trying to protect a Category of my ecommerce with a password, so i'm using htaccess method. I'm using Prestashop, and generate an .htaccess file with its integrated module, in order to have a shortly url (with RewriteRule) Now i added at the end of that file, these lines:
<LocationMatch "/category-2">
AuthType Basic
AuthName "By Invitation Only"
AuthBasicProvider file
AuthUserFile /pwdfile #it is in the same directory of .htaccess
Require user pippo
</LocationMatch>
but with these lines, every page of that site gives me an "500 Internal Server Error" page. I read apache documentation, but these lines seems correct. I created pwdfile with notepad++ because i haven't access to the shell of the server, so i can't use htpasswd as adviced on apache's howto.
Any suggestion why i get this error?
Thanks