Skip to content

Commit 1bc7867

Browse files
Said FathallaSaid Fathalla
authored andcommitted
add redirections for emg v3
1 parent d4efdf0 commit 1bc7867

1 file changed

Lines changed: 15 additions & 11 deletions

File tree

emg/.htaccess

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,26 @@ RewriteCond %{HTTP_ACCEPT} text/\* [OR]
1919
RewriteCond %{HTTP_ACCEPT} \*/\* [OR]
2020
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
2121

22-
# emg v2.0.0 docs
23-
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]
25-
RewriteRule ^v2.0.0/(EMG_[0-9]+)$ https://owl.emglossary.helmholtz-metadaten.de/index.html#$1 [R=303,NE,L]
22+
# emg v3.0.0 docs
23+
RewriteRule ^v3.0.0$ https://owl.emglossary.helmholtz-metadaten.de/ [R=303,L]
24+
RewriteRule ^v3.0.0/$ https://owl.emglossary.helmholtz-metadaten.de/ [R=303,L]
25+
RewriteRule ^v3.0.0/(EMG_[0-9]+)$ https://owl.emglossary.helmholtz-metadaten.de/index.html#$1 [R=303,NE,L]
2626

2727
# emg v2.0.0 owl
2828
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]
30-
RewriteRule ^v2.0.0/$ https://codebase.helmholtz.cloud/em_glossary/em_glossary_owl/-/raw/main/emg.owl [R=303,L]
31-
RewriteRule ^v2.0.0/(EMG_[0-9]+)$ https://codebase.helmholtz.cloud/em_glossary/em_glossary_owl/-/raw/main/emg.owl [R=303,NE,L]
32-
33-
# emg v1.0.0 docs
34-
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]
29+
RewriteRule ^v3.0.0$ https://codebase.helmholtz.cloud/em_glossary/em_glossary_owl/-/raw/main/emg.owl [R=303,L]
30+
RewriteRule ^v3.0.0/$ https://codebase.helmholtz.cloud/em_glossary/em_glossary_owl/-/raw/main/emg.owl [R=303,L]
31+
RewriteRule ^v3.0.0/(EMG_[0-9]+)$ https://codebase.helmholtz.cloud/em_glossary/em_glossary_owl/-/raw/main/emg.owl [R=303,NE,L]
3632

3733
# emg previous versions owl
34+
## v2.0.0
35+
RewriteCond %{HTTP_ACCEPT} ^.*application/rdf\+xml.*
36+
RewriteRule ^v2.0.0$ https://codebase.helmholtz.cloud/em_glossary/em_glossary_owl/-/raw/main/previous-versions/v2.0.0/emg.owl [R=303,L]
37+
RewriteRule ^v2.0.0/$ https://codebase.helmholtz.cloud/em_glossary/em_glossary_owl/-/raw/main/previous-versions/v2.0.0/emg.owl [R=303,L]
38+
RewriteRule ^v2.0.0/(EMG_[0-9]+)$ https://codebase.helmholtz.cloud/em_glossary/em_glossary_owl/-/raw/main/previous-versions/v2.0.0/emg.owl [R=303,NE,L]
39+
40+
41+
## v1.0.0
3842
RewriteCond %{HTTP_ACCEPT} ^.*application/rdf\+xml.*
3943
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]
4044
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]

0 commit comments

Comments
 (0)