Are htaccess files needed in uploads and wp-includes directories
-
Before installing BulletProof Security plugin we had installed the Sucuri security plugin. That plugin has a WordPress “hardening” option that installed an .htaccess file in the wp-content/uploads and /wp-includes directories to prevent PHP execution in those directories. Below I have included the code inside those .htaccess files.
My two-part question is:
a) do you recommend leaving those files or deleting them?
b) if you recommend deleting them, is that because the .htaccess file that BulletProof Security installs in the root directory takes care of those php execution issues?Thanks!
# code added by Sucuri plugin to wp-content/uploads and to /wp-includes
# directories to prevent php execution
<Files *.php>
deny from all
</Files>
- The topic ‘Are htaccess files needed in uploads and wp-includes directories’ is closed to new replies.