website/.htaccess

45 lines
1.6 KiB
ApacheConf
Raw Normal View History

2017-11-06 21:45:23 +00:00
AddDefaultCharset utf-8
2018-02-19 14:04:40 +00:00
AddCharset UTF-8 .css .js
2017-11-06 21:45:23 +00:00
FileETag MTime Size
ServerSignature Off
SetEnvIf Host ^ suppress-error-charset
2018-02-19 14:04:40 +00:00
AddType image/x-icon .ico
AddType application/manifest+json .webmanifest
ErrorDocument 403 https://kaboom.pw/
ErrorDocument 404 https://kaboom.pw/
<FilesMatch ".(htm|html)$">
2018-04-02 16:24:21 +00:00
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"
2018-02-19 14:04:40 +00:00
Header set X-Frame-Options "DENY"
Header set X-Xss-Protection "1; mode=block"
</FilesMatch>
2017-11-06 21:45:23 +00:00
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"
2018-02-19 14:04:40 +00:00
Header unset Accept-Ranges
Header unset Last-Modified