I want to be able to password protect в specific directory but keep others free for anyone to access, but гve found out that when в directory is password protected by в .htaccess and .htpasswd file it disappears from apachВs directory listing.
Is there any way to make the password protected directory appear among the other unprotected directories?
Это не может быть тем, что Вы после, но Вы могли попытаться ограничить эти .htaccess
ограничения на файлы, которые находятся в каталоге, который Вы хотите защитить вместо того, чтобы защитить сам каталог.
Добавьте строку
IndexOptions +ShowForbidden
в файл .htaccess
в родительской папке защищенной папки.
Добавлено IndexOptions ShowForbidden
вместо IndexOptions +ShowForbidden