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/programmes
|
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/event)$ $1/
|
Chris@0
|
18 #RewriteRule ^(.*)$ http://dbtune.org/onto/doc/event.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/programmes/programmes.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/programmes.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 [OR]
|
Chris@0
|
35 RewriteCond %{HTTP_ACCEPT} text/n3
|
Chris@0
|
36 RewriteRule ^ http://dbtune.org/onto/doc/programmes.n3 [R=303]
|
Chris@0
|
37
|
Chris@0
|
38 # Choose the default response
|
Chris@0
|
39 # ---------------------------
|
Chris@0
|
40
|
Chris@0
|
41 # Rewrite rule to serve RDF/XML content by default
|
Chris@0
|
42 RewriteRule ^$ http://dbtune.org/onto/doc/programmes.html [R=303]
|
Chris@0
|
43
|
Chris@0
|
44 # Rewrite rules to serve HTML content by default (disabled)
|
Chris@0
|
45 # (To enable this option, uncomment the two rewrite rules below,
|
Chris@0
|
46 # and comment out the rewrite rule directly above)
|
Chris@0
|
47 #RewriteRule ^$ http://dbtune.org/onto/doc/audio_features.html [R=303]
|
Chris@0
|
48 ##RewriteRule ^(.+) http://dbtune.org/onto/doc/audio_features.html [R=303,NE]
|