-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
26 lines (20 loc) · 1.12 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
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{DOCUMENT_ROOT}/static%{REQUEST_URI}/index.html -f
RewriteRule ^$ /static/index.html [L]
RewriteRule ^([a-zA-Z0-9_\-]+)$ /static/$1.html [L]
RewriteRule ^variable/([a-zA-Z0-9_\-]+)$ /static/index.html#/variable/$1 [L]
RewriteRule ^modality/([a-zA-Z0-9_\-]+)$ /static/index.html#/modality/$1 [L]
RewriteRule ^metaFolder/([a-zA-Z0-9_\-]+)$ /static/index.html#/metaFolder/$1 [L]
RewriteRule ^metaDataset/([a-zA-Z0-9_\-]+)$ /static/index.html#/metaDataset/$1 [L]
RewriteRule ^metaVariable/([a-zA-Z0-9_\-]+)$ /static/index.html#/metaVariable/$1 [L]
RewriteRule ^([a-zA-Z0-9_\-]+)/([a-zA-Z0-9_\-]+)$ /static/$1/$2.html [L]
ErrorDocument 404 /static/_error.html
ExpiresActive On
ExpiresByType text/javascript "access plus 1 year"
ExpiresByType application/javascript "access plus 1 year"
ExpiresByType text/css "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType font/woff2 "access plus 1 year"
ExpiresByType application/font-woff2 "access plus 1 year"