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.
- Loading branch information
Nicholas Car
committed
Oct 27, 2019
1 parent
6fb8005
commit b5e8091
Showing
1 changed file
with
7 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,8 +1,11 @@ | ||
RewriteEngine On | ||
|
||
# this redirect forwards on URIs like https://w3id.org/mediatype/text/html to https://conneg.info/mediatypes/object?uri=https://w3id.org/mediatype/text/html | ||
# where a Linked Data API handles the call for tex/html | ||
RewriteRule "^(.+)$" "https://conneg.info/mediatypes/object?uri=https://w3id.org/mediatype/$1" [R=303,L,QSA] | ||
# one-off redirect for the DCAT Dataset identifier for this Media Types dataset | ||
RewriteRule "^dataset$" "https://conneg.info/mediatypes" [R=303,L,QSA] | ||
|
||
# this redirect forwards on URIs like https://w3id.org/mediatype/text/html to https://conneg.info/mediatypes-service/object?uri=https://w3id.org/mediatype/text/html | ||
# where a Linked Data API handles the call for text/html | ||
RewriteRule "^(.+)$" "https://conneg.info/mediatypes-service/object?uri=https://w3id.org/mediatype/$1" [R=303,L,QSA] | ||
|
||
# this redirect forwards on the request for the medaitypes register to the Linked Data API which delivers it | ||
RewriteRule "^$" "https://conneg.info/mediatypes/mediatype/" [R=303,L,QSA] | ||
RewriteRule "^$" "https://conneg.info/mediatypes-service/mediatype/" [R=303,L,QSA] |