ThomasJSmart
Programmer
- Sep 16, 2002
- 634
Is it possible to deny access to a subdirectory from a htaccess file in the root?
The exact structure is like this:
/root/.htaccess
/root/subdirs/sub1/noaccess
/root/subdirs/sub1/access
/root/subdirs/sub2/noaccess
/root/subdirs/sub2/access
the .htaccess on the root should disable access to the 2 "noaccess" directories.
something like: /subdirs/(.*)/noaccess -> deny all
i dont think i can use a rewrite rule because each "noaccess" directory contains a htaccess with rewrite rules already. (mainly this one: RewriteRule ^(.*)$ index.php [NC,L])
Possible?
Thank you
Thomas
site | / blog |
The exact structure is like this:
/root/.htaccess
/root/subdirs/sub1/noaccess
/root/subdirs/sub1/access
/root/subdirs/sub2/noaccess
/root/subdirs/sub2/access
the .htaccess on the root should disable access to the 2 "noaccess" directories.
something like: /subdirs/(.*)/noaccess -> deny all
i dont think i can use a rewrite rule because each "noaccess" directory contains a htaccess with rewrite rules already. (mainly this one: RewriteRule ^(.*)$ index.php [NC,L])
Possible?
Thank you
Thomas
site | / blog |