views:

20

answers:

0

I'm looking to edit my .htaccess file to control AuthTypeBasic for it's own directory and child directories differently.

I currently have password protection (AuthType Basic) set up on the a folder and would like to set up some of the children directories to be exempt from this password protection and other child directories to have unique passwords.

Is there a way to do this from one, the root's, .htaccess file?

What I'm using right now:

RewriteEngine On
RewriteBase /folder/
RewriteRule ^index\.php$ - [L]

# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]

AuthType Basic
AuthUserFile /server/www.domain.com/folder/.htpasswd
AuthName "Members Area"
require valid-user

Thank you in advanced for any input and/or suggestions!

(I'm attempting to do this from the root due to using wordpress 3's multiple blog setup, so the children directories are generated on the fly... if that makes sense)