Skip to content

Commit

Permalink
Merge pull request perma-id#1492 from saidfathalla/master
Browse files Browse the repository at this point in the history
adding ChemSci and DentSci redirects
  • Loading branch information
davidlehn authored Sep 23, 2019
2 parents 6fbea49 + b0e48f0 commit 81490f0
Showing 1 changed file with 37 additions and 2 deletions.
39 changes: 37 additions & 2 deletions skgo/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,45 @@ RewriteCond %{HTTP_ACCEPT} text/\* [OR]
RewriteCond %{HTTP_ACCEPT} \*/\* [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
RewriteRule ^pham$ https://zeynepsay.github.io/PharmSci.html [R=303,NE,L]

RewriteCond %{HTTP_ACCEPT} ^.*application/rdf\+xml.*
RewriteRule ^pham$ https://raw.githubusercontent.com/Zeisem/PharmSci/Ontology/PharmSci.rdf [R=303,NE,L]
RewriteCond %{HTTP_ACCEPT} ^.*text/turtle.*
RewriteRule ^pham$ https://raw.githubusercontent.com/Zeisem/PharmSci/Ontology/PharmSci.ttl [R=303,NE,L]
#default response: ttl
RewriteRule ^pham$ https://raw.githubusercontent.com/aysegulsay/PhySci/master/PhySci.ttl [R=303,NE,L]
RewriteRule ^pham$ https://raw.githubusercontent.com/aysegulsay/PhySci/master/PhySci.ttl [R=303,NE,L]

#Rewrite rules for chemsci vocabulary
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 ^chemsci$ https://saidfathalla.github.io/Science-knowledge-graph-ontologies/doc/ChemSci_doc/index-en.html [R=303,NE,L]
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
RewriteRule ^chemsci$ https://saidfathalla.github.io/Science-knowledge-graph-ontologies/doc/ChemSci_doc/index-en.html [R=303,NE,L]
RewriteCond %{HTTP_ACCEPT} ^.*application/rdf\+xml.*
RewriteRule ^chemsci$ https://raw.githubusercontent.com/saidfathalla/Science-knowledge-graph-ontologies/master/ChemSci.owl [R=303,NE,L]
RewriteCond %{HTTP_ACCEPT} ^.*text/turtle.*
RewriteRule ^chemsci$ https://raw.githubusercontent.com/saidfathalla/Science-knowledge-graph-ontologies/master/ChemSci.ttl [R=303,NE,L]
#default response: ttl
RewriteRule ^chemsci$ https://raw.githubusercontent.com/saidfathalla/Science-knowledge-graph-ontologies/master/ChemSci.ttl [R=303,NE,L]

#Rewrite rules for dentsci vocabulary
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 ^dentsci$ https://saidfathalla.github.io/Science-knowledge-graph-ontologies/doc/DentSci_doc/index-en.html [R=303,NE,L]
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
RewriteRule ^dentsci$ https://saidfathalla.github.io/Science-knowledge-graph-ontologies/doc/DentSci_doc/index-en.html [R=303,NE,L]
RewriteCond %{HTTP_ACCEPT} ^.*application/rdf\+xml.*
RewriteRule ^dentsci$ https://raw.githubusercontent.com/saidfathalla/Science-knowledge-graph-ontologies/master/DentSci.owl [R=303,NE,L]
RewriteCond %{HTTP_ACCEPT} ^.*text/turtle.*
RewriteRule ^dentsci$ https://raw.githubusercontent.com/saidfathalla/Science-knowledge-graph-ontologies/master/DentSci.ttl [R=303,NE,L]
#default response: ttl
RewriteRule ^dentsci$ https://raw.githubusercontent.com/saidfathalla/Science-knowledge-graph-ontologies/master/DentSci.ttl [R=303,NE,L]


0 comments on commit 81490f0

Please sign in to comment.