-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.htaccess
42 lines (30 loc) · 1.07 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
RewriteEngine On
#
# Here setup redirectiong to subdomains
# Tady nastavte přesměrování do subdomén
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !\.(css|js|icon|zip|rar|png|jpg|gif|pdf|svg)$ index.php [L]
AddType application/x-httpd-php .php .phtml
<FilesMatch "\.(json|phtml|sql|txt)$">
Order allow,deny
Deny from all
</FilesMatch>
<filesMatch ".(css|js|jpg|jpeg|png|gif|ico|svg|ttf|eot|woff|woff2|webp)$">
Header set Cache-Control "max-age=31536000, public"
</filesMatch>
# X-Frame-Options settings
Header set X-Frame-Options "SAMEORIGIN"
# X-Content-Type-Options
Header set X-Content-Type-Options "nosniff"
# Feature-Policy settings
Header always set Feature-Policy "vibrate 'self'; sync-xhr 'self';"
# Referrer-Policy settings
Header always set Referrer-Policy "strict-origin-when-cross-origin"
# X-XSS-Protection settings
Header set X-XSS-Protection "1; mode=block"
# Strict Transport Security
Header set Strict-Transport-Security "max-age=31536000"
# Content-Security-Policy
Header set Content-Security-Policy "font-src 'self';"