[solved] .htaccess directives question

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

[solved] .htaccess directives question

Post 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>
Last edited by neophyte on Wed Nov 24, 2004 3:32 pm, edited 1 time in total.
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

solved

Post by neophyte »

This is a side effect of a feature called 'UseCanonicalName'. It's a redirection issue.
Post Reply