By the default, apache disable .htaccess files from getting its effect on the directories and the subdirectories, and to enable this function you have to go into the following steps:
1- Locate the file httpd.conf in your apache folder, and open it using any text editor such as notepad or something else.
2- Search for the line ";LoadModule rewrite_module modules/mod_rewrite.so" and remove the ";" semicolon from the beginning of the line.
3- Search for the phrase "AllowOverride None" and replace it with "AllowOverride All" in the same file.
4- Save the changes and restart your apache using your Apache Service Monitor.
In this case and if you put your .htaccess file in the directory, then it would affect the directory listing, redirect and all the .htaccess configurations.
Regards,
Wail Shalabi.