Why a password-protected directory asks twice for the password?

Usually the reason for this is that you have password-protected a subdirectory on your site. In the same time in the webroot there is another .htaccess file with other Apache directives and this confuses the webserver to ask twice for the password.

In order to solve it either move the password protection to a different directory or remove any rewrite rules / redirection in the .htaccess file.

You find this article useful? Click here to learn more about SiteGround web hosting experts and what else we can do for you!