htaccess password protection folder and no pass in subfolder

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
eugene2006
Forum Newbie
Posts: 19
Joined: Fri Oct 28, 2005 6:09 pm

htaccess password protection folder and no pass in subfolder

Post by eugene2006 »

I protect /rootfolder/
with
AuthName "Admin Center"
AuthType Basic
AuthUserFile /home2/winameri/.htpasswd
AuthGroupFile /dev/null
require valid-user

and dont want to protect /rootfolder/subfolders/

how can I do that?
User avatar
m0u53m4t
Forum Contributor
Posts: 101
Joined: Wed Apr 19, 2006 7:47 am
Location: Wales

Post by m0u53m4t »

So how do you access the root folder???
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

Have you tried to override the directives allready by placing an emtpy .htaccess in the subfolder?

http://httpd.apache.org/docs/1.3/howto/htaccess.html
Post Reply