Click to See Complete Forum and Search --> : putting a .htaccess file in the root directory and also in a folder


deco12
10-03-2007, 12:01 PM
Hi,

I am new to web design and javascript, 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.....

aaron.martinas
10-03-2007, 12:07 PM
unfortunately, .htaccess is not a javascript issue. its an apache server issue. your question is better posed in a forum for that type of web server. dont know if one exists here.

LeeU
10-03-2007, 04:50 PM
I moved the thread. You should be able to get more answers here.