htaccess?
ok, i have an htaccess file in the root directory of my site used for error page redirections... i also have a htaccess file in the directory "sql/sql/" used for password protection. since i added the htaccess file to the root directory, the other one doesn't work.
what i need to know is how to password protect the directoy "sql/sql" form the root directory.
any help would be appreciated.
thnx
http://www.newbie-developer.com - Newbie web-developer community.
cds posted this at 16:43 — 1st June 2002.
They have: 359 posts
Joined: Mar 1999
It might be helpful if you posted the contents of your .htaccess files. It sounds like the root one is cancelling the other and they shouldn't.
korndragon posted this at 18:43 — 1st June 2002.
They have: 87 posts
Joined: Dec 2001
Root .htaccess file:
-------------------------------
ErrorDocument 401 /index.php?view=error.php&error=401
ErrorDocument 403 /index.php?view=error.php&error=403
ErrorDocument 404 /index.php?view=error.php&error=404
ErrorDocument 500 /index.php?view=error.php&error=500
ErrorDocument 501 /index.php?view=error.php&error=501
-----------------------------------------------------
-----------------------------------------------------
/sql/sql/ .htaccess file
AuthUserFile /home/sites/cgi.korndragon.net/.htpasswd
AuthName "Admin Area"
AuthType Basic
require valid-user
http://www.newbie-developer.com - Newbie web-developer community.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.