website/.htaccess
2018-04-02 23:02:51 +02:00

44 lines
1.6 KiB
ApacheConf

AddDefaultCharset utf-8
AddCharset UTF-8 .css .js
FileETag MTime Size
ServerSignature Off
SetEnvIf Host ^ suppress-error-charset
AddType image/x-icon .ico
AddType application/manifest+json .webmanifest
ErrorDocument 403 https://kaboom.pw/
ErrorDocument 404 https://kaboom.pw/
<FilesMatch ".(htm|html)$">
Header set Content-Security-Policy "default-src 'none'; font-src data:; form-action 'self'; img-src 'self'; manifest-src 'self'; style-src 'self'; upgrade-insecure-requests"
Header set X-Frame-Options "DENY"
Header set X-Xss-Protection "1; mode=block"
</FilesMatch>
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://kaboom.pw/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://kaboom.pw/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^flame.ga$
RewriteRule ^(.*)$ https://kaboom.pw/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www.flame.ga$
RewriteRule ^(.*)$ https://kaboom.pw/$1 [R=301,L]
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
Header set Referrer-Policy "no-referrer"
Header set Strict-Transport-Security "max-age=63072000; includeSubdomains; preload"
Header set Vary "Accept-Encoding"
Header set X-Content-Type-Options "nosniff"
Header unset Accept-Ranges
Header unset Last-Modified