Skip to content

Commit

Permalink
Split EUTaxO by kingdom
Browse files Browse the repository at this point in the history
  • Loading branch information
jfaldanam authored Jun 7, 2023
1 parent 1ee8f63 commit 552e9ff
Showing 1 changed file with 54 additions and 5 deletions.
59 changes: 54 additions & 5 deletions EUTaxO/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,71 @@ AddType application/rdf+xml .owl

RewriteEngine on

# Rewrite rules for hierarchy
########### Animalia ###########
# Rewrite rules for animalia
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml|text/\*|\*/\*)
RewriteCond %{HTTP_ACCEPT} text/html [OR]
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
RewriteCond %{HTTP_ACCEPT} \*/\* [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
RewriteRule ^hierarchy$ https://jfaldanam.gitlab.io/EUTaxO/hierarchy [R=302,NE,L]
RewriteRule ^animalia$ https://jfaldanam.gitlab.io/EUTaxO/animalia [R=302,NE,L]
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^hierarchy$ https://jfaldanam.gitlab.io/EUTaxO/hierarchy/EUTaxO.owl [R=302,NE,L]
RewriteRule ^animalia$ https://jfaldanam.gitlab.io/EUTaxO/animalia/EUTaxO-animalia.owl [R=302,NE,L]

# Default response for animalia: html
RewriteRule ^animalia$ https://jfaldanam.gitlab.io/EUTaxO/animalia [R=303,NE,L]

# Default response for hierarchy: html
RewriteRule ^hierarchy$ https://jfaldanam.gitlab.io/EUTaxO/ [R=303,NE,L]

########### Bacteria ###########
# Rewrite rules for bacteria
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml|text/\*|\*/\*)
RewriteCond %{HTTP_ACCEPT} text/html [OR]
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
RewriteCond %{HTTP_ACCEPT} \*/\* [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
RewriteRule ^bacteria$ https://jfaldanam.gitlab.io/EUTaxO/bacteria [R=302,NE,L]
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^bacteria$ https://jfaldanam.gitlab.io/EUTaxO/bacteria/EUTaxO-bacteria.owl [R=302,NE,L]

# Default response for bacteria: html
RewriteRule ^bacteria$ https://jfaldanam.gitlab.io/EUTaxO/bacteria [R=303,NE,L]


########### Chromista ###########
# Rewrite rules for chromista
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml|text/\*|\*/\*)
RewriteCond %{HTTP_ACCEPT} text/html [OR]
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
RewriteCond %{HTTP_ACCEPT} \*/\* [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
RewriteRule ^chromista$ https://jfaldanam.gitlab.io/EUTaxO/chromista [R=302,NE,L]
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^chromista$ https://jfaldanam.gitlab.io/EUTaxO/chromista/EUTaxO-chromista.owl [R=302,NE,L]

# Default response for chromista: html
RewriteRule ^chromista$ https://jfaldanam.gitlab.io/EUTaxO/chromista [R=303,NE,L]


########### Fungi ###########
# Rewrite rules for fungi
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml|text/\*|\*/\*)
RewriteCond %{HTTP_ACCEPT} text/html [OR]
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
RewriteCond %{HTTP_ACCEPT} \*/\* [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
RewriteRule ^fungi$ https://jfaldanam.gitlab.io/EUTaxO/fungi [R=302,NE,L]
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^fungi$ https://jfaldanam.gitlab.io/EUTaxO/fungi/EUTaxO-fungi.owl [R=302,NE,L]

# Default response for fungi: html
RewriteRule ^fungi$ https://jfaldanam.gitlab.io/EUTaxO/fungi [R=303,NE,L]


########### Base ontology ###########
# Rewrite rules
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml|text/\*|\*/\*)
RewriteCond %{HTTP_ACCEPT} text/html [OR]
Expand Down

0 comments on commit 552e9ff

Please sign in to comment.