MyNoVi/.htaccess

19 lines
445 B
ApacheConf
Raw Permalink Normal View History

Options -Indexes
<ifModule mod_rewrite.c>
2020-10-08 17:00:12 +02:00
RewriteEngine On
RewriteCond $1 !^(css)
RewriteRule ^([^/]*)/([^/]*)$ /?dir=$1&file=$2 [L]
AddType text/css .css
</IfModule>
<IfModule mod_headers.c>
Header always set X-FRAME-OPTIONS "DENY"
Header set Content-Security-Policy "script-src 'self'"
2020-11-05 15:49:20 +01:00
Header set Content-Security-Policy "base-uri 'self';"
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 day"
</IfModule>