Options -Indexes
DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
# Pass the Authorization header through (some hosts strip it)
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteRule ^(app|sql|storage|tests|cron)/ - [F,L,NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]
</IfModule>
<FilesMatch "^(\.env|\.user\.ini|composer\.(json|lock)|ironmind-root\.txt)$">
Require all denied
</FilesMatch>
<IfModule mod_headers.c>
<FilesMatch "\.(js|css|svg|png|webmanifest)$">
Header set Cache-Control "public, max-age=604800"
</FilesMatch>
</IfModule>
