From b5e8091f12b7682d60767f8e40779c5b5e1454cb Mon Sep 17 00:00:00 2001 From: Nicholas Car Date: Mon, 28 Oct 2019 00:35:30 +1300 Subject: [PATCH] added redirect for Dataset --- mediatype/.htaccess | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/mediatype/.htaccess b/mediatype/.htaccess index cb6deec54..10549595f 100644 --- a/mediatype/.htaccess +++ b/mediatype/.htaccess @@ -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]