Chris@0: # Turn off MultiViews Chris@0: Options -MultiViews Chris@0: Chris@0: # Directive to ensure *.rdf files served as appropriate content type, Chris@0: # if not present in main apache config Chris@0: AddType application/rdf+xml .rdf Chris@0: AddType text/rdf+n3 .n3 Chris@0: Chris@0: # Rewrite engine setup Chris@0: RewriteEngine On Chris@0: RewriteBase /onto/programmes Chris@0: Chris@0: # Rewrite rule to serve HTML content from the vocabulary URI if requested Chris@0: #RewriteCond %{HTTP_ACCEPT} text/html [OR] Chris@0: #RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR] Chris@0: #RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.* Chris@0: #RewriteRule ^(.*onto/event)$ $1/ Chris@0: #RewriteRule ^(.*)$ http://dbtune.org/onto/doc/event.html [R=303] Chris@0: Chris@0: # Rewrite rule to serve directed HTML content from class/prop URIs Chris@0: #RewriteCond %{HTTP_ACCEPT} text/html [OR] Chris@0: #RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR] Chris@0: #RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.* Chris@0: #RewriteRule ^#(.+) http://dbtune.org/onto/programmes/programmes.html [R=303,NE] Chris@0: Chris@0: # Rewrite rule to serve RDF/XML content if requested Chris@0: RewriteCond %{HTTP_ACCEPT} application/rdf\+xml Chris@0: RewriteRule ^ http://dbtune.org/onto/doc/programmes.rdf [R=303] Chris@0: Chris@0: # Same for text/n3 and application/x-turtle Chris@0: RewriteCond %{HTTP_ACCEPT} application/x\-turtle [OR] Chris@0: RewriteCond %{HTTP_ACCEPT} application/turtle [OR] Chris@0: RewriteCond %{HTTP_ACCEPT} text/turtle [OR] Chris@0: RewriteCond %{HTTP_ACCEPT} text/rdf\+n3 [OR] Chris@0: RewriteCond %{HTTP_ACCEPT} text/n3 Chris@0: RewriteRule ^ http://dbtune.org/onto/doc/programmes.n3 [R=303] Chris@0: Chris@0: # Choose the default response Chris@0: # --------------------------- Chris@0: Chris@0: # Rewrite rule to serve RDF/XML content by default Chris@0: RewriteRule ^$ http://dbtune.org/onto/doc/programmes.html [R=303] Chris@0: Chris@0: # Rewrite rules to serve HTML content by default (disabled) Chris@0: # (To enable this option, uncomment the two rewrite rules below, Chris@0: # and comment out the rewrite rule directly above) Chris@0: #RewriteRule ^$ http://dbtune.org/onto/doc/audio_features.html [R=303] Chris@0: ##RewriteRule ^(.+) http://dbtune.org/onto/doc/audio_features.html [R=303,NE]