htaccess Elite

.htaccess tutorial


All times are UTC [ DST ]





Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Authenticate some(75) directories via htaccess
PostPosted: 25 Jun 2008 22:02 
Offline

Joined: 25 Jun 2008 21:42
Posts: 2
We have 80 root level directories. 75 of them need to be authenticate via .htaccess but 5 do not need to authenticate. I can do by matching those 75 directory names using <FileMatch> in this way:

<FilesMatch "^(exec|env|doit|phpinfo|w)*$">
AuthName "Development"
AuthUserFile /.htpasswd
AuthType basic
Require valid-user
</FilesMatch>

But I would prefer to manage this by disabling authentication for the 5 directories using something like a NOT <FilesMatch> or similar rather than managing the 75.

Any help is greatly appreciated.

Thanks,


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB