forked from perma-id/w3id.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
38 lines (33 loc) · 2.14 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
RewriteEngine on
# https://github.com/common-workflow-language/cwlviewer/wiki/Permalinks
ReWriteRule ^view/git/(.*) https://view.commonwl.org/git/$1 [R=302,L]
ReWriteRule ^view(/)?$ https://github.com/common-workflow-language/cwlviewer/wiki/Permalinks [R=303,L]
## Note - ^view rules must be ABOVE the greedy ^v(.*) rules below
# Current draft (FIXME: Should use cdn.rawgit.com once draft is released)
RewriteRule ^$ http://www.commonwl.org/v1.0/ [R=302,L]
RewriteRule ^salad/context$ http://www.commonwl.org/v1.0/salad-context.json [R=302,L]
RewriteRule ^context$ http://www.commonwl.org/v1.0/cwl-context.json [R=302,L]
RewriteRule ^cwl$ http://www.commonwl.org/v1.0/cwl.ttl [R=302,L]
RewriteRule ^salad$ http://www.commonwl.org/v1.0/salad.ttl [R=302,L]
RewriteRule ^cwl.ttl$ http://www.commonwl.org/v1.0/cwl.ttl [R=302,L]
RewriteRule ^salad.ttl$ http://www.commonwl.org/v1.0/salad.ttl [R=302,L]
# Any specific draft
RewriteRule ^draft(.*)/salad/context http://www.commonwl.org/draft$1/salad-context.json [R=302,L]
RewriteRule ^draft(.*)/context http://www.commonwl.org/draft$1/cwl-context.json [R=302,L]
RewriteRule ^draft(.*)/cwl.ttl http://www.commonwl.org/draft$1/cwl.ttl [R=302,L]
RewriteRule ^draft(.*)/salad.ttl http://www.commonwl.org/draft$1/salad.ttl [R=302,L]
RewriteRule ^draft(.*) http://www.commonwl.org/draft$1 [R=302,L]
# Any specific version (in the future)
RewriteRule ^v(.*)/salad/context http://www.commonwl.org/v$1/salad-context.json [R=302,L]
RewriteRule ^v(.*)/context http://www.commonwl.org/v$1/cwl-context.json [R=302,L]
RewriteRule ^v(.*)/cwl.ttl http://www.commonwl.org/v$1/cwl.ttl [R=302,L]
RewriteRule ^v(.*)/salad.ttl http://www.commonwl.org/v$1/salad.ttl [R=302,L]
RewriteRule ^v(.*) http://www.commonwl.org/v$1 [R=302,L]
# CWLProv profiles
## Latest
RewriteRule ^prov(/)?$ https://github.com/common-workflow-language/cwlprov/ [R=302,L]
## TODO: Tag 0.3.0 in cwlprov
RewriteRule ^prov/0.3.0$ https://github.com/common-workflow-language/cwlprov/ [R=302,L]
## Legacy profiles - straight to Zenodo preprints
RewriteRule ^prov/0.2.0$ https://doi.org/10.5281/zenodo.1215611 [R=302,L]
RewriteRule ^prov/0.1.0$ https://doi.org/10.5281/zenodo.1208478 [R=302,L]