In the cPanel file manager, I’ve used “Password Protect” to set directory privacy for one of the folders in my public_html site. I toggled on “password protect this directory” and gave the directory a label (name) as requested. Then I “saved.” Next, I created an authorized user and password, and “saved.”
Before protecting the directory, files at the location showed up online on my site. After protecting the directory, the same URLs are giving me a “page not found” error with no login prompt for the authorized user I created. (Turning directory protection off makes those URLs work again.) I’ve tried in several browsers and also cleared caches.
I see in the .htpasswds folder that for that protected directory there exists a “passwd” file after I turned protection on.
What am I doing wrong? Why am I seeing a 404 for files in the directory instead of a login dialogue for the authorized user I created? --Thanks in advance.
P.S. I already consulted the other relevant post in this forum: Directory privacy