Skip to content

Commit 618763c

Browse files
authored
Merge pull request #69 from Materials-Data-Science-and-Informatics/saidfathalla-patch-4
fix emg redirection to include slash to PIDs for all ontology versions
2 parents 253c47d + 98849af commit 618763c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

emg/.htaccess

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,23 @@ RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
2121

2222
# emg v2.0.0 docs
2323
RewriteRule ^v2.0.0$ https://owl.emglossary.helmholtz-metadaten.de/ [R=303,L]
24+
RewriteRule ^v2.0.0/$ https://owl.emglossary.helmholtz-metadaten.de/ [R=303,L]
2425
RewriteRule ^v2.0.0/(EMG_[0-9]+)$ https://owl.emglossary.helmholtz-metadaten.de/index.html#$1 [R=303,NE,L]
2526

2627
# emg v2.0.0 owl
2728
RewriteCond %{HTTP_ACCEPT} ^.*application/rdf\+xml.*
29+
RewriteRule ^v2.0.0$ https://codebase.helmholtz.cloud/em_glossary/em_glossary_owl/-/raw/main/emg.owl [R=303,L]
2830
RewriteRule ^v2.0.0/$ https://codebase.helmholtz.cloud/em_glossary/em_glossary_owl/-/raw/main/emg.owl [R=303,L]
2931
RewriteRule ^v2.0.0/(EMG_[0-9]+)$ https://codebase.helmholtz.cloud/em_glossary/em_glossary_owl/-/raw/main/emg.owl [R=303,NE,L]
3032

3133
# emg v1.0.0 docs
3234
RewriteRule ^v1.0.0$ https://codebase.helmholtz.cloud/em_glossary/em_glossary_owl/-/raw/main/previous-versions/v1.0.0/emg.owl [R=303,L]
35+
RewriteRule ^v1.0.0/$ https://codebase.helmholtz.cloud/em_glossary/em_glossary_owl/-/raw/main/previous-versions/v1.0.0/emg.owl [R=303,L]
3336

3437
# emg previous versions owl
3538
RewriteCond %{HTTP_ACCEPT} ^.*application/rdf\+xml.*
3639
RewriteRule ^v1.0.0$ https://codebase.helmholtz.cloud/em_glossary/em_glossary_owl/-/raw/main/previous-versions/v1.0.0/emg.owl [R=303,L]
40+
RewriteRule ^v1.0.0/$ https://codebase.helmholtz.cloud/em_glossary/em_glossary_owl/-/raw/main/previous-versions/v1.0.0/emg.owl [R=303,L]
3741
RewriteRule ^v1.0.0/(EMG_[0-9]+)$ https://codebase.helmholtz.cloud/em_glossary/em_glossary_owl/-/raw/main/previous-versions/v1.0.0/emg.owl [R=303,NE,L]
3842

3943
# HTML ontology docs

0 commit comments

Comments
 (0)