forked from perma-id/w3id.org
-
Notifications
You must be signed in to change notification settings - Fork 1
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#2253 from AnneGoebels/master
asbingowl update structure
- Loading branch information
Showing
6 changed files
with
54 additions
and
99 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
Options +FollowSymLinks | ||
RewriteEngine on | ||
|
||
# Turn off MultiViews | ||
Options -MultiViews | ||
|
||
AddType text/turtle .ttl | ||
AddType application/rdf+xml .rdf | ||
|
||
# Rewrite rule to serve HTML content from the vocabulary URI if requested | ||
RewriteCond %{HTTP_ACCEPT} text/html [OR] | ||
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR] | ||
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.* | ||
RewriteRule ^$ https://annegoebels.github.io/ [R=302,NE,L] | ||
|
||
# In case of accept header <text/turtle> | ||
RewriteCond %{HTTP_ACCEPT} ^.*text/turtle.* | ||
RewriteRule ^$ https://annegoebels.github.io/ontology.ttl [R=303,NE,L] | ||
|
||
# In case of accept header <application/rdf+xml> | ||
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml | ||
RewriteRule ^$ https://annegoebels.github.io/ontology.xml [R=302,NE,L] | ||
|
||
# If suffix ttl, redirect to turtle version | ||
RewriteRule ^ontology.ttl$ https://annegoebels.github.io/ontology.ttl [R=302,NE,L] | ||
|
||
# If suffix html, redirect to html version | ||
RewriteRule ^ontology.html$ https://annegoebels.github.io/ [R=302,NE,L] | ||
|
||
# If suffix rdf, redirect to rdf version | ||
RewriteRule ^ontology.rdf$ https://annegoebels.github.io/ontology.xml [R=302,NE,L] | ||
|
||
# If suffix jsonld, redirect to jsonld version | ||
RewriteRule ^ontology.jsonld$ https://annegoebels.github.io/ontology.json [R=302,NE,L] | ||
|
||
# If suffix nt, redirect to nt version | ||
RewriteRule ^ontology.nt$ https://annegoebels.github.io/ontology.nt [R=302,NE,L] | ||
|
||
# Default response: html | ||
RewriteRule ^$ https://annegoebels.github.io/ [R=303,NE,L] |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
Options +FollowSymLinks | ||
RewriteEngine on | ||
RewriteRule ^$ https://annegoebels.github.io/SubOntNewKeys.ttl [R=302,L] |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Options +FollowSymLinks | ||
RewriteEngine on | ||
RewriteRule ^$ https://annegoebels.github.io/SubOntOldKeys.ttl [R=302,L] |
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