Options -Indexes
DirectoryIndex index.php
<IfModule mod_mime.c>
AddType application/javascript .js .mjs
AddType text/css .css
</IfModule>
RewriteEngine On
RewriteRule ^(?:storage|custom)/ - [F,L]
RewriteRule ^(?:core\.php|network\.php|seed\.php|proxy-engine\.php)$ - [F,L]
RewriteRule ^sitemap\.xml$ index.php?route=sitemap [L,QSA]
RewriteRule ^robots\.txt$ index.php?route=robots [L,QSA]
RewriteRule ^tools/?$ index.php?route=tools [L,QSA]
RewriteRule ^tools/([a-z0-9-]+)/?$ index.php?route=tool&slug=$1 [L,QSA]
RewriteRule ^blog/?$ index.php?route=blog [L,QSA]
RewriteRule ^blog/([a-z0-9-]+)/?$ index.php?route=post&slug=$1 [L,QSA]
RewriteRule ^contact/?$ index.php?route=contact [L,QSA]
RewriteRule ^([a-z0-9-]+)/?$ index.php?route=page&slug=$1 [L,QSA]
<IfModule mod_headers.c>
Header always set X-Content-Type-Options "nosniff"
Header always set Referrer-Policy "strict-origin-when-cross-origin"
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/css "access plus 7 days"
ExpiresByType application/javascript "access plus 7 days"
ExpiresByType image/svg+xml "access plus 30 days"
</IfModule>
