
<FilesMatch '\.(php|php\.|phtml|php3|php4|php5|php7|phps)$'>
    Order Deny,Allow
    Deny from all
</FilesMatch>
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^.*\.php$ - [F,L]
</IfModule>