I have used code like this in apache configuration to protect locations with password
<Location ~ "/admin.*">
AuthType Basic
AuthName "Protected Area"
AuthUserFile /home/user/public_html/.htpasswd
Require valid-user
</Location>
is there a way to do the same thing using an htaccess file?
the locations I want to protect don't really exist on the filesystem, it's locations available thanks to mod_rewrite