Page 1 of 1

Password protect directory

Posted: Thu Jun 19, 2008 10:03 pm
by akjackson1
Hi,
I am trying to protect a directory with .htaccess, but it wont accept my user and pass..

This is what I have in my .htaccess file:

Code: Select all

AuthName "Restricted Area" 
AuthType Basic 
AuthUserFile pass/.htpasswd 
AuthGroupFile /dev/null 
require valid-user
and I have a dir called "pass", and my .htpasswd file within that dir, but it just wont let me in when I enter my user and pass, any ideas?

Re: Password protect directory

Posted: Thu Jun 19, 2008 11:16 pm
by WebbieDave
Well, this is not really a PHP coding issue. And, well, not to seem snippy but we should really try to make sure this forum focuses on that. Yes?

But, since you seem like a nice guy, I'll point you to an apache forum :)

http://www.webmasterworld.com/apache/

Re: Password protect directory

Posted: Thu Jun 19, 2008 11:27 pm
by akjackson1
Oh, sorry, I forgot! thanks for the link!! :D