Reputation:
I have setup an .htaccess and .htpasswd file correctly and my password gets accepted, but only on the second attempt. I have read somewhere what to do about this, but I lost the page. Any suggestions?
Upvotes: 1
Views: 309
Reputation: 4799
This is probably because you refer to the domain differently in several locations. For example, if you refer to your site as "http://mysite.com" and "http://www.mysite.com", you have to authenticate twice: once for each. If you refer to your site consistently in your code, you'll only be prompted once.
In addition, if you refer to any subdomains, such as "http://es.mysite.com" for a localized version of the site, you'd have to authenticate again for that reference.
Upvotes: 2