Chris@0
|
1 # Turn off MultiViews
|
Chris@0
|
2 Options -MultiViews
|
Chris@0
|
3
|
Chris@0
|
4 # Directive to ensure *.rdf files served as appropriate content type,
|
Chris@0
|
5 # if not present in main apache config
|
Chris@0
|
6 AddType application/rdf+xml .rdf
|
Chris@0
|
7 AddType text/rdf+n3 .n3
|
Chris@0
|
8
|
Chris@0
|
9 # Rewrite engine setup
|
Chris@0
|
10 RewriteEngine On
|
Chris@0
|
11 RewriteBase /onto/af
|
Chris@0
|
12
|
Chris@0
|
13 # Rewrite rule to serve HTML content from the vocabulary URI if requested
|
Chris@0
|
14 RewriteCond %{HTTP_ACCEPT} text/html [OR]
|
Chris@0
|
15 RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
|
Chris@0
|
16 RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
|
Chris@0
|
17 RewriteRule ^(.*onto/af)$ $1/
|
Chris@0
|
18 RewriteRule ^(.*)$ http://dbtune.org/onto/doc/audio_features.html [R=303]
|
Chris@0
|
19
|
Chris@0
|
20 # Rewrite rule to serve directed HTML content from class/prop URIs
|
Chris@0
|
21 RewriteCond %{HTTP_ACCEPT} text/html [OR]
|
Chris@0
|
22 RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
|
Chris@0
|
23 RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
|
Chris@0
|
24 RewriteRule ^/(.+) http://dbtune.org/onto/doc/audio_features.html [R=303,NE]
|
Chris@0
|
25
|
Chris@0
|
26 # Rewrite rule to serve RDF/XML content if requested
|
Chris@0
|
27 RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
|
Chris@0
|
28 RewriteRule ^ http://dbtune.org/onto/doc/audio_features.rdf [R=303]
|
Chris@0
|
29
|
Chris@0
|
30 # Same for text/n3 and application/x-turtle
|
Chris@0
|
31 RewriteCond %{HTTP_ACCEPT} application/x\-turtle [OR]
|
Chris@0
|
32 RewriteCond %{HTTP_ACCEPT} application/turtle [OR]
|
Chris@0
|
33 RewriteCond %{HTTP_ACCEPT} text/turtle [OR]
|
Chris@0
|
34 RewriteCond %{HTTP_ACCEPT} text/rdf\+n3
|
Chris@0
|
35 RewriteRule ^ http://dbtune.org/onto/doc/audio_features.n3 [R=303]
|
Chris@0
|
36
|
Chris@0
|
37 # Choose the default response
|
Chris@0
|
38 # ---------------------------
|
Chris@0
|
39
|
Chris@0
|
40 # Rewrite rule to serve RDF/XML content by default
|
Chris@0
|
41 #RewriteRule ^example4/ example4-content/2005-10-31.rdf [R=303]
|
Chris@0
|
42
|
Chris@0
|
43 # Rewrite rules to serve HTML content by default (disabled)
|
Chris@0
|
44 # (To enable this option, uncomment the two rewrite rules below,
|
Chris@0
|
45 # and comment out the rewrite rule directly above)
|
Chris@0
|
46 RewriteRule ^$ http://dbtune.org/onto/doc/audio_features.html [R=303]
|
Chris@0
|
47 #RewriteRule ^(.+) http://dbtune.org/onto/doc/audio_features.html [R=303,NE]
|