Limited Time Offer - from ₱35.00/month
00
DAYS
18
HOURS
31
MINUTES
44
SECONDS
Get Started
×

Knowledge base

Find information and articles about features, guides for troubleshooting,
and other useful information related to Hostinger's web hosting services.

Why does a password-protected directory ask twice for the password?

Modified on:
htpassword htaccess password protect directory directory password

This is happening because you have a password-protected subfolder on your account. If there is a .htaccess file above the subfolder you are trying to password protect, Apache webserver is confused and asks the password for each .htaccess file it finds in its path. In order to solve this, either move the password protection to your web root folder or remove any rewrite rules/redirections.

  • Easy Website Builder
  • 99.9% Uptime Guarantee
  • 24/7 Live Support
  • Powerful Control Panel
  • 30-Days Money-Back Guarantee
Limited Time Special Offer!
From
35
00
/mo
Save 90%
Get started