Options -Indexes

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^submit/([a-zA-Z0-9-]+)/?$ submit.php?form=$1 [L,QSA]
# Application code, command-line scripts, tests and data are never requested directly.
RewriteRule ^(storage-private|includes|templates|bin|tests)(/|$) - [F,L]
RewriteRule ^(config\.php|config\.example\.php|VERSION)$ - [F,L]
</IfModule>

<IfModule mod_authz_core.c>
    <FilesMatch "^(config\.php|config\.example\.php|VERSION)$">
        Require all denied
    </FilesMatch>
</IfModule>
<IfModule !mod_authz_core.c>
    <FilesMatch "^(config\.php|config\.example\.php|VERSION)$">
        Order allow,deny
        Deny from all
    </FilesMatch>
</IfModule>
