gatemezing / Ontology_Workflow_Testing

Verified Permissions ontology
Apache License 2.0
1 stars 0 forks source link

.htaccess for redirection in w3id.org #11

Closed gatemezing closed 3 months ago

gatemezing commented 4 months ago

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]