Page 1 of 1

[solved] .htaccess directives question

Posted: Wed Nov 24, 2004 1:27 pm
by neophyte
Has anyone ever had the problem where apache directs you to enter your username and password twice to be able to access a protected directory. I've got a .htaccess and a .htpasswd in a directory. The directory is protected but people are prompted twice for username and passsword. It sure would be nice if they were prompted only once. Does anybody know what is causing this?

Here is my .htaccess file:

Code: Select all

AuthUserFile /home/website/www/directory/.htpasswd
AuthGroupFile /dev/null
AuthName "Post your username and password"
AuthType Basic

<Limit GET POST>
require user Bob
</Limit>

solved

Posted: Wed Nov 24, 2004 3:32 pm
by neophyte
This is a side effect of a feature called 'UseCanonicalName'. It's a redirection issue.