Options -Indexes -ExecCGI

<IfModule mod_authz_core.c>
    <FilesMatch "\.(jpe?g|png|gif|webp|bmp|svg)$">
        Require all granted
    </FilesMatch>
    <FilesMatch "\.(php|php\d|phtml|pht|phar|cgi|pl|py|sh)$">
        Require all denied
    </FilesMatch>
</IfModule>

<IfModule !mod_authz_core.c>
    <FilesMatch "\.(jpe?g|png|gif|webp|bmp|svg)$">
        Order Allow,Deny
        Allow from all
    </FilesMatch>
    <FilesMatch "\.(php|php\d|phtml|pht|phar|cgi|pl|py|sh)$">
        Order Deny,Allow
        Deny from all
    </FilesMatch>
</IfModule>
