I want to restrict access using HTTP Basic Auth for a specific path so that someone visits /foo/bar will be prompted with the authentication form but not /(.*).
I use mod_rewrite so I can't put a .htaccess inside a folder as usually would do.