-
Notifications
You must be signed in to change notification settings - Fork 275
Expand file tree
/
Copy path.htaccess
More file actions
71 lines (58 loc) · 2.42 KB
/
.htaccess
File metadata and controls
71 lines (58 loc) · 2.42 KB
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
php_value magic_quotes_gpc off
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond "%{HTTP_HOST}" "!^www\.matecat\.com" [NC]
RewriteRule ^robots\.txt$ robots-whitelabel.txt [L]
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
#RewriteRule ^offline\.html$ /lib/View/offline.html [L]
#RewriteCond %{REQUEST_URI} !/offline.html [NC]
#RewriteCond %{REQUEST_URI} !/public/build/runtime\.(.+)\.js [NC]
#RewriteCond %{REQUEST_URI} !/public/build/commonCss\.(.+)\.(css|js) [NC]
#RewriteCond %{REQUEST_URI} !/public/build/images/(.+)\.svg [NC]
#RewriteCond %{REQUEST_URI} !/img/meta/favicon(.+)\.svg [NC]
#RewriteRule $ /offline.html [R=307,L]
RewriteCond %{REQUEST_URI} /offline.html
RewriteRule $ / [R=307,L]
# RewriteRule ^phpinfo phpinfo.php [QSA,L]
RewriteRule ^fileupload/$ lib/View/fileupload/index.php [QSA,L]
RewriteRule ^api/docs$ lib/View/APIDoc.php [L]
# Route all through the router
RewriteRule ^$ router.php [QSA,L]
RewriteRule !.(css|fonts|gif|jpe?g?|png|ico|js|svg|woff|ttf|map)$ router.php [QSA,L]
RedirectMatch 404 ^/\.git
RedirectMatch 404 ^/vendor
RedirectMatch 404 ^/storage
</IfModule>
ErrorDocument 401 /lib/View/401.html
ErrorDocument 403 /lib/View/403.html
ErrorDocument 404 /lib/View/404.html
ErrorDocument 409 /lib/View/409.html
ErrorDocument 410 /lib/View/410.html
ErrorDocument 503 /lib/View/503.html
ErrorDocument 500 /lib/View/500.html
SetEnvIf ^ ^ no-gzip
SetEnvIfNoCase Request_URI \.(?:css|js|map)$ !no-gzip
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/html "access plus 1 hour"
ExpiresByType text/css "access plus 1 hour"
ExpiresByType text/javascript "access plus 1 hour"
ExpiresByType application/javascript "access plus 1 hour"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/vnd.microsoft.icon "access plus 1 month"
ExpiresByType image/ico "access plus 1 month"
ExpiresByType image/svg "access plus 1 month"
</IfModule>
<IfModule mod_headers.c>
Header append Vary User-Agent env=!dont-vary
Header always append X-Frame-Options SAMEORIGIN
Header always append X-Content-Type-Options nosniff
Header always append X-XSS-Protection "1; mode=block"
</IfModule>
php_value display_errors 0
php_value log_errors 1
php_value error_log storage/log_archive/php_errors.txt
php_value short_open_tag on