Skip to content

Commit

Permalink
Merge pull request perma-id#1012 from MadsHolten/patch-6
Browse files Browse the repository at this point in the history
Update .htaccess
  • Loading branch information
davidlehn authored Jun 1, 2018
2 parents 98c0865 + 2a5f74b commit e1c6d06
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions opm/.htaccess
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
Options +FollowSymLinks
RewriteEngine on
Options +FollowSymLinks

# Turn off MultiViews
Options -MultiViews

AddType text/turtle .ttl

# In case of accept header <text/turtle>
RewriteCond %{HTTP_ACCEPT} ^.*text/turtle.*
RewriteRule ^$ https://raw.githubusercontent.com/w3c-lbd-cg/opm/master/opm.ttl [R=303,NE,L]
RewriteRule ^$ https://w3c-lbd-cg.github.io/opm/opm.ttl [R=303,NE,L]

# If suffix ttl, redirect to turtle version
RewriteRule ^opm.ttl$ https://w3c-lbd-cg.github.io/opm/opm.ttl [R=302,NE,L]

# If suffix html, redirect to html version
RewriteRule ^opm.html$ https://w3c-lbd-cg.github.io/opm [R=302,NE,L]

#default response: ttl
RewriteRule ^$ https://raw.githubusercontent.com/w3c-lbd-cg/opm/master/opm.ttl [R=303,NE,L]
# Default response: html
RewriteRule ^$ https://w3c-lbd-cg.github.io/opm [R=303,NE,L]

0 comments on commit e1c6d06

Please sign in to comment.