Skip to content

Commit

Permalink
added redirect for Dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Car committed Oct 27, 2019
1 parent 6fb8005 commit b5e8091
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions mediatype/.htaccess
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]

0 comments on commit b5e8091

Please sign in to comment.