forked from perma-id/w3id.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0753f0
commit 9e0d47f
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | ||
|