Skip to content

Commit

Permalink
OnToology Publish
Browse files Browse the repository at this point in the history
  • Loading branch information
OnToologyUser committed Jan 9, 2025
1 parent b5235c2 commit 4ad8f94
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions OnToology/ontology/ontology.ttl/documentation/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,26 @@ RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+
RewriteCond %{HTTP_ACCEPT} text/html [OR]
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
RewriteRule ^$ index-en.html [R=303,L]
RewriteRule ^$ https://oeg-upm.github.io/OWLChangeOntology/OnToology/ontology/ontology.ttl/documentation/index-en.html [R=303,L]

# Rewrite rule to serve RDF/XML content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} \*/\* [OR]
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^$ ontology.owl [R=303,L]
RewriteRule ^$ https://oeg-upm.github.io/OWLChangeOntology/OnToology/ontology/ontology.ttl/documentation/ontology.owl [R=303,L]

# Rewrite rule to serve N-Triples content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} application/n-triples
RewriteRule ^$ ontology.nt [R=303,L]
RewriteRule ^$ https://oeg-upm.github.io/OWLChangeOntology/OnToology/ontology/ontology.ttl/documentation/ontology.nt [R=303,L]

# Rewrite rule to serve TTL content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} text/turtle [OR]
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
RewriteCond %{HTTP_ACCEPT} \*/turtle
RewriteRule ^$ ontology.ttl [R=303,L]
RewriteRule ^$ https://oeg-upm.github.io/OWLChangeOntology/OnToology/ontology/ontology.ttl/documentation/ontology.ttl [R=303,L]

RewriteCond %{HTTP_ACCEPT} .+
RewriteRule ^$ 406.html [R=406,L]
RewriteRule ^$ https://oeg-upm.github.io/OWLChangeOntology/OnToology/ontology/ontology.ttl/documentation/406.html [R=406,L]
# Default response
# ---------------------------
# Rewrite rule to serve the RDF/XML content from the vocabulary URI by default
RewriteRule ^$ ontology.owl [R=303,L]
RewriteRule ^$ https://oeg-upm.github.io/OWLChangeOntology/OnToology/ontology/ontology.ttl/documentation/ontology.owl [R=303,L]

0 comments on commit 4ad8f94

Please sign in to comment.