1
AddOutputFilterByType DEFLATE text/html
2
AddOutputFilterByType DEFLATE text/css
3
AddOutputFilterByType DEFLATE text/javascript
6
RewriteCond %{HTTP_HOST} ^www\.html5test\.com$
7
RewriteRule ^ http://html5test.com%{REQUEST_URI} [L,R=301]
9
RewriteRule ^compare.html$ /compare/browser/index.html [R]
10
RewriteRule ^results.html$ /results/desktop.html [R]
11
RewriteRule ^results-mobile.html$ /results/mobile.html [R]
12
RewriteRule ^results-tablets.html$ /results/tablet.html [R]
13
RewriteRule ^results-tv.html$ /results/television.html [R]
15
RewriteRule ^api/(.+)$ /backend/index.php?method=$1&%{QUERY_STRING}
16
RewriteRule ^s/(.+).html$ /backend/controllers/saved.php?id=$1
17
RewriteRule ^compare/browser/index.html$ /backend/controllers/browser.php?%{QUERY_STRING}
18
RewriteRule ^compare/browser/(.+).html$ /backend/controllers/browser.php?show=$1&%{QUERY_STRING}
19
RewriteRule ^compare/feature/index.html$ /backend/controllers/feature.php?%{QUERY_STRING}
20
RewriteRule ^compare/feature/(.+).html$ /backend/controllers/feature.php?show=$1&%{QUERY_STRING}
21
RewriteRule ^results/desktop.html$ /backend/controllers/results.php?type=desktop
22
RewriteRule ^results/mobile.html$ /backend/controllers/results.php?type=mobile
23
RewriteRule ^results/tablet.html$ /backend/controllers/results.php?type=tablet
24
RewriteRule ^results/gaming.html$ /backend/controllers/results.php?type=gaming
25
RewriteRule ^results/television.html$ /backend/controllers/results.php?type=television
26
RewriteRule ^results/other.html$ /backend/controllers/results.php?type=other
27
RewriteRule ^results/latest.html$ /backend/controllers/latest.php
28
RewriteRule ^results/search.html$ /backend/controllers/search.php
29
RewriteRule ^results/related/(.+).html$ /backend/controllers/fingerprint.php?id=$1
30
RewriteRule ^results/(.+)/timeline/(.+).html$ /backend/controllers/timeline.php?id=$2&type=$1
31
RewriteRule ^results/timeline/(.+).html$ /backend/controllers/timeline.php?id=$1&type=mobile
32
RewriteRule ^devicelab/inventory.html$ /backend/controllers/lab-inventory.php
33
RewriteRule ^devicelab/?$ /backend/controllers/lab.php
35
RewriteRule ^favicon(.*)$ /images/icons/favicon$1
36
RewriteRule ^apple-touch-icon(.*)$ /images/icons/apple-touch-icon$1
37
RewriteRule ^mstile-(.*)$ /images/icons/mstile-$1
38
RewriteRule ^browserconfig.xml /images/icons/browserconfig.xml
40
RewriteRule ^scripts/useragents http://api.whichbrowser.net/warning.js
43
<FilesMatch ".+\.[woff|eot|svg|ttf]">
44
<IfModule mod_headers.c>
45
Header set Access-Control-Allow-Origin "*"
49
<FilesMatch "detect.html">
50
<IfModule mod_headers.c>
51
Header set Access-Control-Allow-Origin "*"
56
SetEnvIf User-Agent .*Bada.* BROKEN_CSP
58
<FilesMatch "csp.html">
59
<IfModule mod_headers.c>
60
Header set Content-Security-Policy "default-src 'unsafe-inline' data: *; frame-src *; options inline-script;" env=!BROKEN_CSP