W3 Total Cache – Minify being blocked by .htaccess in wp-content
-
I’m trying to troubleshoot minify on W3 Total Cache. The URL rewriting component was failing with a frequent 403 forbidden error which I couldn’t understand. I eventually tracked the error down to the .htaccess file in the ./wp-content directory. This file contains the following code:
<FilesMatch “\.(?i:php)$”>
<IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
</IfModule>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
</FilesMatch>Now, I haven’t placed this there and I’m not sure if it ships with WordPress as standard or was put there by a security plugin. However, I briefly removed the file and the minify access returned immediately.
Obviously, if removing this .htaccess makes my WordPress install vulnerable, then I have to reinstate it (which I have – I’m not stupid!). Has anyone got a workable long-term solution to this problem so I can have minify work properly?
- The topic ‘W3 Total Cache – Minify being blocked by .htaccess in wp-content’ is closed to new replies.