forked from quantombone/LabelMeAnnotationTool
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.htaccess
More file actions
56 lines (52 loc) · 1.82 KB
/
.htaccess
File metadata and controls
56 lines (52 loc) · 1.82 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
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
SetEnvIfNoCase Request_URI \
\.(?:gif|jpe?g|png)$ no-gzip dont-vary
</IfModule>
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType image/jpg "access 1 day"
ExpiresByType image/gif "access 1 day"
ExpiresByType image/jpeg "access 1 day"
ExpiresByType image/png "access 1 day"
ExpiresByType text/css "access 1 day"
ExpiresByType application/x-javascript "access plus 1 day"
ExpiresByType text/javascript "access plus 1 day"
ExpiresByType application/javascript "access plus 1 day"
ExpiresByType image/x-icon "access plus 1 day"
ExpiresByType image/icon "access plus 1 day"
ExpiresByType application/x-ico "access plus 1 day"
ExpiresByType application/ico "access plus 1 day"
ExpiresByType text/x-javascript "access plus 1 day"
ExpiresByType application/javascript "access plus 1 day"
ExpiresByType application/x-javascript "access plus 1 day"
</IfModule>
Options +Includes +ExecCGI
AddHandler cgi-script .cgi .sh .pl
AddType text/html .shtml
AddHandler server-parsed .shtml
XBitHack on
BrowserMatchNoCase macintosh Mac
BrowserMatchNoCase MSIE InternetExplorer
<Files "tool.html">
AddType application/xhtml+xml html
AddHandler server-parsed .html
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_ACCEPT} !application/xhtml\+xml
RewriteCond %{HTTP_ACCEPT} (text/html|\*/\*)
RewriteCond %{REQUEST_FILENAME} .*\.html
RewriteRule ^.*$ - "[T=text/html,L]"
</Files>
<Files "unit_tests.html">
AddType application/xhtml+xml html
AddHandler server-parsed .html
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_ACCEPT} !application/xhtml\+xml
RewriteCond %{HTTP_ACCEPT} (text/html|\*/\*)
RewriteCond %{REQUEST_FILENAME} .*\.html
RewriteRule ^.*$ - "[T=text/html,L]"
</Files>
RewriteEngine on
RewriteRule ^index\.html$ index.php