<FilesMatch "\.(?:inc|php|js|jsx|swf|phtml)$"> Order allow,deny Deny from all </FilesMatch> <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>