forked from perma-id/w3id.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request perma-id#1012 from MadsHolten/patch-6
Update .htaccess
- Loading branch information
Showing
1 changed file
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |