# Turn off MultiViews Options -MultiViews # Directive to ensure *.rdf files served as appropriate content type, # if not present in main apache config AddType application/rdf+xml .rdf AddType application/x-turtle .ttl # Rewrite engine setup RewriteEngine On RewriteBase /ontology # Rewrite rule to make sure we serve HTML content from the namespace URI if requested 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 ^fast_gadget$ fast_gadget_content/fgo2009-11-16.html [R=303] # Rewrite rule to make sure we serve HTML content from the namespace URI if requested RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(application/x-turtle|application/turtle) RewriteCond %{HTTP_ACCEPT} application/x-turtle [OR] RewriteCond %{HTTP_ACCEPT} application/turtle [OR] RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.* RewriteRule ^fast_gadget$ fast_gadget_content/fgo2009-11-16.ttl [R=303] # Rewrite rule to make sure we serve the RDF/XML content from the namespace URI by default RewriteRule ^fast_gadget$ fast_gadget_content/fgo2009-11-16.rdf [R=303]