I have a directory called /restricted which has an .htaccess and an .htpasswd

Under that I have remapped subdirectories to different users, like /restricted/user1. I would like the .htaccess under the /restricted folder to apply to those subdirectories, but it does not. How do I get around this?

BTW, still thinking about why your original action didn’t work. I’m sure that someone else will pop up with the answer before I can figure it out.

Remapped subdirectories actually use the Alias directive handled by mod_alias.

That said, Apache is mapping the URL to the new path before beginning the directory walk for .htaccess files. You could stick “deny from all” in the document root and the remapped subdirectory will still be accessible!