|
7 | 7 | Options +FollowSymLinks |
8 | 8 | Options -MultiViews |
9 | 9 |
|
10 | | - |
11 | 10 | # Directive to ensure *.rdf files served as appropriate content type |
12 | 11 | AddType application/rdf+xml .owl |
13 | 12 |
|
14 | 13 | RewriteEngine on |
15 | 14 |
|
16 | | -# mwo v2.0.0 (latest version) |
17 | | - |
18 | | -# Rewrite rule to serve RDF/XML content from the vocabulary URI if requested |
19 | | -RewriteCond %{HTTP_ACCEPT} \*/\* [OR] |
20 | | -RewriteCond %{HTTP_ACCEPT} application/rdf\+xml |
21 | | -RewriteRule ^$ https://git.rwth-aachen.de/nfdi-matwerk/ta-oms/mwo/-/raw/main/mwo.owl [R=303,L] |
22 | 15 |
|
| 16 | +# Rewrite rule to serve HTML ontology docs |
23 | 17 | RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml) |
24 | 18 | RewriteCond %{HTTP_ACCEPT} text/html [OR] |
25 | 19 | RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR] |
26 | 20 | RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.* |
27 | | -RewriteRule ^((.+)|/?)$ https://nfdi-matwerk.pages.rwth-aachen.de/ta-oms/mwo/docs/index.html#$2 [R=303,NE,L] |
28 | | - |
29 | | -# mwo v1.0.1 |
| 21 | +RewriteRule ^(MWO_[0-9]+)$ https://ise-fizkarlsruhe.github.io/mwo/#http://purls.helmholtz-metadaten.de/mwo/$1 [R=303,NE,L] |
30 | 22 |
|
31 | | -#Rewrite rules for mwo vocabulary |
| 23 | +# Rewrite rule for /mwo to serve HTML content |
32 | 24 | RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml) |
33 | 25 | RewriteCond %{HTTP_ACCEPT} text/html [OR] |
34 | 26 | RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR] |
35 | 27 | RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.* |
36 | | -RewriteRule ^1.0.1$ https://nfdi-matwerk.pages.rwth-aachen.de/ta-oms/mwo/releases/v1.0.1/docs/ [R=303,L] |
| 28 | +RewriteRule ^/?$ https://ise-fizkarlsruhe.github.io/mwo/ [R=303,NE,L] |
37 | 29 |
|
| 30 | + |
| 31 | +# Rewrite rule to serve RDF/XML content |
38 | 32 | RewriteCond %{HTTP_ACCEPT} \*/\* [OR] |
39 | 33 | RewriteCond %{HTTP_ACCEPT} application/rdf\+xml |
40 | | -RewriteRule ^1.0.1$ https://git.rwth-aachen.de/nfdi-matwerk/ta-oms/mwo/-/raw/main/releases/v1.0.1/mwo.owl [R=303,L] |
| 34 | +RewriteRule ^$ https://ise-fizkarlsruhe.github.io/mwo/ontology.owl [R=303,NE,L] |
41 | 35 |
|
42 | 36 | # Default response |
43 | | -# Rewrite rule to serve the RDF/XML content from the mwo IRI by default |
44 | | -RewriteRule ^$ https://git.rwth-aachen.de/nfdi-matwerk/ta-oms/mwo/-/raw/main/mwo.owl [R=303,L] |
45 | | - |
46 | | - |
47 | | - |
| 37 | +RewriteRule ^$ https://ise-fizkarlsruhe.github.io/mwo/ontology.owl [R=303,NE,L] |
0 commit comments