-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
79 lines (58 loc) · 1.93 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Expires
ExpiresActive On
ExpiresDefault "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType image/x-icon "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
# END <<<<<<<<
# Cache-Control Headers
<filesMatch "\.(ico|jpe?g|png|gif|swf)$">
Header set Cache-Control "public"
</filesMatch>
<filesMatch "\.(css)$">
Header set Cache-Control "public"
</filesMatch>
<filesMatch "\.(js)$">
Header set Cache-Control "private"
</filesMatch>
<filesMatch "\.(x?html?|php)$">
Header set Cache-Control "private, must-revalidate"
</filesMatch>
# END <<<<<<<<
# Turn ETags Off
FileETag None
# END <<<<<<<<
# Prevent viewing of .htaccess file
<Files .htaccess>
Order Allow,Deny
Deny from all
</Files>
# END <<<<<<<<
# Preventing Directory Listing
Options -Indexes
# END <<<<<<<<
# Error Documents
ErrorDocument 403 https://www.vicsar.win/assets/htm/error-403-access-denied-forbidden.htm
ErrorDocument 404 https://www.vicsar.win/assets/htm/error-404-page-not-found.htm
ErrorDocument 500 https://www.vicsar.win/assets/htm/error-500-server-error.htm
# END <<<<<<<<
# Server Time settings
php_value date.timezone America/Costa_Rica
# END <<<<<<<<
# Allow the same tcp connection for HTTP conversation instead of opening a new one with each new request
Header set Connection keep-alive
# Forces connections over HTTPS encryption
Header add Strict-Transport-Security "max-age=300;includeSubDomains;preload"
# END <<<<<<<<
# Redirects http:// traffic to https://
# Bravenet uses a reverse proxy, hence X-Forwarded-Proto
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# END <<<<<<