htaccess not working in blogs.dir
-
In trying to harden my installs I’ve been trying to follow the advice from the codex and helpful community members (props MickeyRoush).
I’ve been able to apply the htacces to the uploads directory in wp-content successfully. However the identical file does not work fully when placed in the blogs.dir folder.
If a forbidden file type is access by way of the primary domain, the htaccess is respected and the request refused. But if a forbidden file type is accessed by the addon domain, access is allowed.
I am using Multisite with Domain Mapping so that member sites can respond to their own domain names, not subdirectory and not subdomain.
For clarity in a multisite setup call the primary domain primary.wp. A member site call member1.wp.
Accessing the file by
primary.wp/blogs.dir/2/files/forbidden.php
is rejected with a 403.
Accessing the file by
member1.wp/files/forbidden.php
is allowed and the file is executed.
Anyone have suggestions on how I can enforce the htaccess rules for all folders under blogs.dir regardless of the domains by which they are accessed?
- The topic ‘htaccess not working in blogs.dir’ is closed to new replies.