All Collections
hPanel
Other
Why Does a Password-Protected Directory Ask for the Password Twice?
Why Does a Password-Protected Directory Ask for the Password Twice?

Solving duplicating password requests

Updated over a week ago

Sometimes, when you access a specific subfolder on the website, it might ask you to enter a password twice.

This happens in cases when the password is set not only for the subfolder which you want to open but also for its parent directory.

It might be useful if you want to keep different sets of permissions for your website's visitors (with different passwords, they can access more directories). However, if that's not intended, you can easily remove the double password request:

  • Either move the password protection from the subdirectory to its parent directory

  • Remove any rewrite rules/redirects in .htaccess file(s) above the subfolder that you are trying to access

If password protection was set in hPanel, you can also manage access from the Password Protect Directories page.

Did this answer your question?