469,636 Members | 1,559 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,636 developers. It's quick & easy.

Placing a .htaccess file in the root and also in a folder below the root...

1
Hi,

I am new to web design and Apache, but have managed to password protect my site by putting a .htaccess file in the sites root directory.

I have set it up so that a number of members have access to the site.

Now, within the site I have a link to a "document" folder which I only want 2 or 3 members to have access to. I have created a second .htaccess & .ht passwd file, with the path to the new folder and a different password. This was placed in the "document" folder.

However, I can log into the site with no problems, but when I click on the link to the "document" folder, I am presented with the password screen. The problem is that the password will not work. Neither will the password for the .htaccess file in the root directory!!

Am I missing something?? Is it possible to place a .htaccess file on a folder that is already protected by a .htaccess file in the root? If so how can I get around this.

Thanks in advance.....
Oct 3 '07 #1
0 1970

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

7 posts views Thread by Nel | last post: by
3 posts views Thread by Geradeaus | last post: by
5 posts views Thread by BPearson | last post: by
8 posts views Thread by Geoff Cox | last post: by
3 posts views Thread by samvb | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.