Skip to content

Commit 39f662c

Browse files
authored
Merge pull request #88 from Materials-Data-Science-and-Informatics/aazocar-update-versions
Update .htaccess for versioned owls
2 parents b7238c3 + c469ba4 commit 39f662c

1 file changed

Lines changed: 18 additions & 7 deletions

File tree

asmo/.htaccess

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,26 @@ RewriteEngine on
1111
# Directive to ensure *.rdf files served as appropriate content type
1212
AddType application/rdf+xml .owl
1313

14-
# asmo v1.0.0 docs
15-
RewriteRule ^v1.0.0$ https://ocdo.github.io/asmo/ [R=303,L]
16-
RewriteRule ^v1.0.0/$ https://ocdo.github.io/asmo/ [R=303,L]
17-
RewriteRule ^v1.0.0/$ https://ocdo.github.io/asmo/#$1 [R=303,NE,L]
14+
# asmo v0.3.0 docs
15+
RewriteRule ^v0.3.0$ https://ocdo.github.io/asmo/ [R=303,L]
16+
RewriteRule ^v0.3.0/$ https://ocdo.github.io/asmo/ [R=303,L]
17+
RewriteRule ^v0.3.0/$ https://ocdo.github.io/asmo/#$1 [R=303,NE,L]
1818

19-
# asmo v1.0.0 owl
19+
# asmo v0.3.0 owl
2020
RewriteCond %{HTTP_ACCEPT} ^.*application/rdf\+xml.*
21-
RewriteRule ^v1.0.0$ https://raw.githubusercontent.com/OCDO/asmo/main/asmo.owl [R=303,L]
22-
RewriteRule ^v1.0.0/$ https://raw.githubusercontent.com/OCDO/asmo/main/asmo.owl [R=303,L]
21+
RewriteRule ^v0.3.0$ https://raw.githubusercontent.com/OCDO/asmo/main/asmo.owl [R=303,L]
22+
RewriteRule ^v0.3.0/$ https://raw.githubusercontent.com/OCDO/asmo/main/asmo.owl [R=303,L]
23+
24+
# previous versions owl
25+
## v0.2.0
26+
RewriteCond %{HTTP_ACCEPT} ^.*application/rdf\+xml.*
27+
RewriteRule ^v0.2.0$ https://raw.githubusercontent.com/OCDO/asmo/refs/heads/main/previous-versions/asmo_v020.owl [R=303,L]
28+
RewriteRule ^v0.2.0/$ https://raw.githubusercontent.com/OCDO/asmo/refs/heads/main/previous-versions/asmo_v020.owl [R=303,L]
29+
30+
## v0.0.1
31+
RewriteCond %{HTTP_ACCEPT} ^.*application/rdf\+xml.*
32+
RewriteRule ^v0.0.1$ https://raw.githubusercontent.com/OCDO/asmo/refs/heads/main/previous-versions/asmo_v001.owl [R=303,L]
33+
RewriteRule ^v0.0.1/$ https://raw.githubusercontent.com/OCDO/asmo/refs/heads/main/previous-versions/asmo_v001.owl [R=303,L]
2334

2435
# Rewrite rule to serve HTML content - terms
2536
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml|text/\*|\*/\*)

0 commit comments

Comments
 (0)