15 lines
482 B
ApacheConf
15 lines
482 B
ApacheConf
RewriteEngine On
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteRule . /index.html [L]
|
|
|
|
# Security headers
|
|
Header always set X-Content-Type-Options nosniff
|
|
Header always set X-Frame-Options DENY
|
|
Header always set X-XSS-Protection "1; mode=block"
|
|
Header always set Referrer-Policy "strict-origin-when-cross-origin"
|
|
|
|
# Cache control
|
|
<filesMatch "\.(css|js|png|jpg|jpeg|gif|ico|svg)$">
|
|
Header set Cache-Control "max-age=31536000, public"
|
|
</filesMatch> |