Why are the prompts to protected directories inconsistent

Avatar
  • Answered
I am experimenting with protecting directories. The problem is that the prompts to login are inconsistent or not working and I don't know why. For example, in FireFox, sometimes the prompt comes up repeatedly even after entering the info; sometimes the prompt comes up, with the page visible in the background and if I cancel the login, I am still allowed in; also, sometimes I can login to one file within a protected directory but not the other; and on and on...so it's getting very confusing to keep all the variations straight.

What I would really like to do in the long run (if I ever figure this out in the first place) is to be able to protect my entire site except for specific folders. Is that possible? We have a site that is basically a private site, but want to have a public landing page that has some non-private links. Or do I need to learn how to write my own .htaccess file? Would doing a subdomain work...could the main site be protected but not the subdomain?

Just looking for some help...thanks
Avatar
johnpaulb-imhs1
Hello, Thank you for contacting us about inconsistencies in password protecting directories. If you are not getting consistent results, you may have to clear your browser cache before testing. This should be done after every .htaccess rule change. If your problems persist, review the other rules in your .htaccess. For example, there may be another rule there interfering with the password protection. Here is a link to our guide on how to Allow public access to a file in a protected directory using .htaccess. Yes, you could also create a non-password protected subdomain, or custom code an .htaccess rule as well (if you don't want to use the password protection tool in cPanel to add the rule to your .htaccess file). Thank you, John-Paul