kai920
05-08-2008, 01:25 AM
I am having trouble getting .htaccess to allow access to selected parts of my web site. Here's the set-up
/public_html -- this is protected with "jim" and "jimpassword"
/public_html/special_files -- protect with another UserID (Say "bob" and "bobpassword")
Each directory has a .htaccess file in it.
Here's the problem. I want certain people to access /public_html/special_files, but not /public_html.
Here's what happens: The password "bob" and "bobpassword" allows access to /public_html/special_files, but it also asked for the password to /public_html. If you just ignore it everything works fine, but I'd rather it didn't ask for the parent directory password at all.
How should I set this up?
/public_html -- this is protected with "jim" and "jimpassword"
/public_html/special_files -- protect with another UserID (Say "bob" and "bobpassword")
Each directory has a .htaccess file in it.
Here's the problem. I want certain people to access /public_html/special_files, but not /public_html.
Here's what happens: The password "bob" and "bobpassword" allows access to /public_html/special_files, but it also asked for the password to /public_html. If you just ignore it everything works fine, but I'd rather it didn't ask for the parent directory password at all.
How should I set this up?