forked from perma-id/w3id.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
35 lines (25 loc) · 1.34 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Options +FollowSymLinks
# Turn off MultiViews
Options -MultiViews
RewriteEngine On
AddType application/rdf+xml .rdf
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/aufx/doc/1.0/ [R=303,L]
# RewriteRule ^ http://isophonics.org/content/aufx [R=303,L]
# RewriteRule ^extension/classification/(.*) http://www.essepuntato.it/lode/owlapi/http://eecs.qmul.ac.uk/~thomasw/aufx/extension/classification/$1/classification.ttl [R=303,L]
RewriteRule ^extension/classification/(.*) http://isophonics.org/content/aufx [R=303,L]
# Rewrite rule to serve RDF/XML content if requested
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^ontology/(.*) https://muddymudskipper.github.io/aufx/$1/rdf/aufx.rdf [R=303,L]
# Rewrite rule to serve Turtle content if requested
RewriteCond %{HTTP_ACCEPT} text/turtle
RewriteRule ^ontology/(.*) https://muddymudskipper.github.io/aufx/$1/rdf/aufx.ttl [R=303,L]
## Fallback if Accept is missing: Turtle
RewriteRule ^ontology/(.*) https://muddymudskipper.github.io/aufx/$1/rdf/aufx.ttl [R=303,L]