I have a site where I want to disable certain extensions of file execution just for that folder.
EG: www.yoursite.com/cache/test.php
should not be executed.
I tried this code :
<FilesMatch "\.(htaccess|htpasswd|ini|phps|fla|psd|log|sh|zip|exe|pl|jsp|asp|htm|sh|cgi|py|php)$">
Order Allow,Deny
Deny from all
</FilesMatch>
But this stopped my sites functionality.
I just want this rule to be applied inside cache folder but I can not place the .htaccess
file inside because this folder is regularly cleared.