|
-
Oct 25th, 2008, 05:51 PM
#1
Thread Starter
PowerPoster
.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.
-We have enough youth. How about a fountain of "Smart"?
-If you can read this, thank a teacher....and since it's in English, thank a soldier.

-
Oct 25th, 2008, 06:01 PM
#2
Re: .htaccess in sub directory blocking whole domain
It would help if you could post the contents of the access file.
-
Oct 26th, 2008, 01:05 AM
#3
Thread Starter
PowerPoster
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
-We have enough youth. How about a fountain of "Smart"?
-If you can read this, thank a teacher....and since it's in English, thank a soldier.

-
Oct 26th, 2008, 05:00 AM
#4
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|