<FilesMatch "\.php">
Order allow,deny
Deny from all
Satisfy all
</FilesMatch>
<FilesMatch "index\.php">
Allow from all
</FilesMatch>
RewriteRule \.php$ - [F]
deny from all
<Files ~ "^.*">
Deny from all
</Files>
<Files ~ "^index\.php|css|js|.*\.png|.*\.jpg|.*\.gif">
Allow from all
</Files>