This repository has been archived by the owner on Apr 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 192
/
.htaccess
47 lines (40 loc) · 2.35 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
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.html5test\.com$
RewriteRule ^ http://html5test.com%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} ^(beta.)?cn.html5test.com
RewriteRule ^translation.js$ /translations/cn/index.js
RewriteRule ^translation.js$ /translations/en/index.js
RewriteRule ^compare.html$ /compare/browser/index.html [R]
RewriteRule ^results.html$ /results/desktop.html [R]
RewriteRule ^results-mobile.html$ /results/mobile.html [R]
RewriteRule ^results-tablets.html$ /results/tablet.html [R]
RewriteRule ^results-tv.html$ /results/television.html [R]
RewriteRule ^api/(.+)$ /backend/index.php?method=$1&%{QUERY_STRING}
RewriteRule ^s/(.+).html$ /backend/controllers/saved.php?id=$1
RewriteRule ^compare/browser/index.html$ /backend/controllers/browser.php?%{QUERY_STRING}
RewriteRule ^compare/browser/(.+).html$ /backend/controllers/browser.php?show=$1&%{QUERY_STRING}
RewriteRule ^compare/feature/index.html$ /backend/controllers/feature.php?%{QUERY_STRING}
RewriteRule ^compare/feature/(.+).html$ /backend/controllers/feature.php?show=$1&%{QUERY_STRING}
RewriteRule ^results/desktop.html$ /backend/controllers/results.php?type=desktop
RewriteRule ^results/mobile.html$ /backend/controllers/results.php?type=mobile
RewriteRule ^results/tablet.html$ /backend/controllers/results.php?type=tablet
RewriteRule ^results/gaming.html$ /backend/controllers/results.php?type=gaming
RewriteRule ^results/television.html$ /backend/controllers/results.php?type=television
RewriteRule ^results/latest.html$ /backend/controllers/latest.php
RewriteRule ^results/search.html$ /backend/controllers/search.php
RewriteRule ^devicelab/?$ /backend/controllers/lab.php
<FilesMatch "detect.html">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>
<FilesMatch "index.html">
<IfModule mod_headers.c>
Header set X-WebKit-CSP "default-src 'unsafe-inline' *; frame-src *; options inline-script;"
Header set Content-Security-Policy "default-src 'unsafe-inline' *; frame-src *; options inline-script;"
Header set X-Content-Security-Policy "default-src 'unsafe-inline' *; frame-src *; options inline-script;"
</IfModule>
</FilesMatch>