.htaccess in sub directory blocking whole domain
Hey guys, I am not sure where to post this since it ins't PHP related, but hopefully someone can help me.
I uploaded an htaccess file to a directory on my server to block access to that particular directory. However, when I would try to go to any other directory ( Ones above that direcotry) it would block those as well.
For instance, here is the tree structure
httpdocs
------------directory1
------------directory2 <----- htaccess is in this directory
------------directory3
------------directory4
------------directory5
------------Lots of other files.....
I can't go into any directory on the server without entering the password info. Why is that? I thought it was only supposed to protect that one directory.
Thanks.
Re: .htaccess in sub directory blocking whole domain
It would help if you could post the contents of the access file.
Re: .htaccess in sub directory blocking whole domain
The contents look like this
AuthName "Section Name"
AuthType Basic
AuthUserFile /full/path/to/.htpasswd
Require valid-user
the .htpasswd file is also in the same directory
thanks
Re: .htaccess in sub directory blocking whole domain
That looks ok to me. Make sure your htaccess has not accidentaly been copied into the parent directory. It may also be worth restarting the browser.