Options -Indexes
DirectoryIndex index.html index.php
RewriteEngine On
RewriteRule ^(core|storage|tools|docs)(/|$) - [F,L,NC]
RewriteRule ^uploads/.*\.(php|phtml|phar|cgi|pl|py|sh|asp|aspx|jsp)$ - [F,L,NC]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^ index.php [QSA,L]
