Options -Indexes -MultiViews
Require all granted
DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule (^|/)\. - [F,L]
RewriteRule ^router\.php$ - [F,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L]
</IfModule>
<IfModule mod_headers.c>
<FilesMatch "\.(css|js|svg|ico|png|jpe?g|gif|webp|mp4|webm)$">
Header set Cache-Control "public, max-age=604800, stale-while-revalidate=86400"
Header set X-Content-Type-Options "nosniff"
</FilesMatch>
<FilesMatch "\.(woff2?|ttf)$">
Header set Cache-Control "public, max-age=31536000, immutable"
Header set X-Content-Type-Options "nosniff"
</FilesMatch>
</IfModule>

<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/css text/javascript application/javascript application/json application/xml image/svg+xml
</IfModule>
