Skip to content

Commit

Permalink
adso initial commit, attempt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
muddymudskipper committed Apr 4, 2018
1 parent a0753f0 commit 9e0d47f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions adso/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Options +FollowSymLinks
# Turn off MultiViews
Options -MultiViews

RewriteEngine On

AddType text/turtle .ttl

# Rewrite engine setup
RewriteEngine On

# Rewrite rule to serve HTML content
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml)
RewriteCond %{HTTP_ACCEPT} text/html [OR]
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*

RewriteRule ^ontology/(.*) http://eecs.qmul.ac.uk/~thomasw/adso/ontology/0.1/adso.ttl [R=303,L]


# Rewrite rule to serve Turtle content if requested
RewriteCond %{HTTP_ACCEPT} text/turtle
RewriteRule ^ontology/(.*) http://eecs.qmul.ac.uk/~thomasw/adso/ontology/0.1/adso.ttl [R=303,L]

## Fallback if Accept is missing: Turtle
RewriteRule ^ontology/(.*) http://eecs.qmul.ac.uk/~thomasw/adso/ontology/0.1/adso.ttl [R=303,L]

0 comments on commit 9e0d47f

Please sign in to comment.