Closed gatemezing closed 3 months ago
Options -MultiViews
RewriteEngine On
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 ^$ https://linkedvocabs.org/data/VPADoc/doc/index-en.html [R=303,L]
RewriteCond %{HTTP_ACCEPT} application/rdf+xml [OR] RewriteCond %{HTTP_ACCEPT} application/owl+xml RewriteRule ^$ https://linkedvocabs.org/data/VPADoc/doc/ontology.owl [R=303,L]
RewriteRule ^$ https://linkedvocabs.org/data/VPADoc/doc/ontology.ttl [R=303,L]
Turn off MultiViews
Options -MultiViews
Rewrite engine setup
RewriteEngine On
Rewrite rule to serve HTML content
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 ^$ https://linkedvocabs.org/data/VPADoc/doc/index-en.html [R=303,L]
Rewrite rule to serve RDF/XML content if requested
RewriteCond %{HTTP_ACCEPT} application/rdf+xml [OR] RewriteCond %{HTTP_ACCEPT} application/owl+xml RewriteRule ^$ https://linkedvocabs.org/data/VPADoc/doc/ontology.owl [R=303,L]
Choose the default response
---------------------------
Default Rule
RewriteRule ^$ https://linkedvocabs.org/data/VPADoc/doc/ontology.ttl [R=303,L]