To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Revision:

root / onto / timeline / .htaccess @ 0:1e44d666ced1

History | View | Annotate | Download (1.83 KB)

1
# Turn off MultiViews
2
Options -MultiViews
3

    
4
# Directive to ensure *.rdf files served as appropriate content type, 
5
# if not present in main apache config
6
AddType application/rdf+xml .rdf
7
AddType text/rdf+n3 .n3
8

    
9
# Rewrite engine setup
10
RewriteEngine On
11
RewriteBase /onto/timeline
12

    
13
# Rewrite rule to serve HTML content from the vocabulary URI if requested
14
#RewriteCond %{HTTP_ACCEPT} text/html [OR]
15
#RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
16
#RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
17
#RewriteRule ^(.*onto/event)$ $1/
18
#RewriteRule ^(.*)$ http://dbtune.org/onto/doc/event.html [R=303]
19

    
20
# Rewrite rule to serve directed HTML content from class/prop URIs
21
#RewriteCond %{HTTP_ACCEPT} text/html [OR]
22
#RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
23
#RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
24
#RewriteRule ^#(.+) http://dbtune.org/onto/doc/event.html [R=303,NE]
25

    
26
# Rewrite rule to serve RDF/XML content if requested
27
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
28
RewriteRule ^ http://dbtune.org/onto/doc/timeline.rdf [R=303]
29

    
30
# Same for text/n3 and application/x-turtle
31
RewriteCond %{HTTP_ACCEPT} application/x\-turtle [OR]
32
RewriteCond %{HTTP_ACCEPT} application/turtle [OR]
33
RewriteCond %{HTTP_ACCEPT} text/turtle [OR]
34
RewriteCond %{HTTP_ACCEPT} text/rdf\+n3 [OR]
35
RewriteCond %{HTTP_ACCEPT} text/n3
36
RewriteRule ^ http://dbtune.org/onto/doc/timeline.n3 [R=303]
37

    
38
# Choose the default response 
39
# --------------------------- 
40

    
41
# Rewrite rule to serve RDF/XML content by default
42
RewriteRule ^$ http://dbtune.org/onto/doc/timeline.n3 [R=303]
43

    
44
# Rewrite rules to serve HTML content by default (disabled)
45
# (To enable this option, uncomment the two rewrite rules below,
46
# and comment out the rewrite rule directly above)
47
#RewriteRule ^$ http://dbtune.org/onto/doc/audio_features.html [R=303]
48
##RewriteRule ^(.+) http://dbtune.org/onto/doc/audio_features.html [R=303,NE]