472,119 Members | 1,524 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,119 software developers and data experts.

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


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 2043

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 leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.