Skip to content

Commit 28dea67

Browse files
authored
Update .htaccess for mwo v2.0.0 rewrite rules
1 parent e136c9c commit 28dea67

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

mwo/.htaccess

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,18 @@ RewriteRule ^1.0.1$ https://git.rwth-aachen.de/nfdi-matwerk/ta-oms/mwo/-/raw/mai
2929

3030

3131
# mwo v2.0.0
32+
RewriteCond %{HTTP_ACCEPT} ^.*application/rdf\+xml.*
33+
RewriteRule ^$ https://git.rwth-aachen.de/nfdi-matwerk/ta-oms/mwo/-/raw/main/mwo.owl [R=303,L]
34+
3235
#Rewrite rules for mwo vocabulary
3336
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml|text/\*|\*/\*)
3437
RewriteCond %{HTTP_ACCEPT} text/html [OR]
3538
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
3639
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
37-
RewriteCond %{HTTP_ACCEPT} \*/\* [OR]
3840
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
3941
RewriteRule ^((.+)|/?)$ https://nfdi-matwerk.pages.rwth-aachen.de/ta-oms/mwo/docs/index.html#$2 [R=303,NE,L]
4042
#RewriteRule ^$ https://nfdi-matwerk.pages.rwth-aachen.de/ta-oms/mwo/doc/ [R=303,NE,L]
4143

42-
RewriteCond %{HTTP_ACCEPT} ^.*application/rdf\+xml.*
43-
RewriteRule ^$ https://git.rwth-aachen.de/nfdi-matwerk/ta-oms/mwo/-/raw/main/mwo.owl [R=303,L]
44-
4544

4645
# Default response
4746
# Rewrite rule to serve the RDF/XML content from the mwo IRI by default

0 commit comments

Comments
 (0)