Skip to content

Commit

Permalink
conneg for dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Car committed Oct 28, 2019
1 parent b5e8091 commit 8eec28b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mediatype/.htaccess
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
RewriteEngine On

# one-off redirect for the DCAT Dataset identifier for this Media Types dataset
RewriteCond %{QUERY_STRING} ^_format=text/turtle$ [OR]
RewriteCond %{HTTP:Accept} text/turtle [NC]
RewriteRule "^dataset$" "https://conneg.info/mediatypes.ttl" [R=303,L]
RewriteRule "^dataset.ttl$" "https://conneg.info/mediatypes.ttl" [R=303,L]
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
Expand Down

0 comments on commit 8eec28b

Please sign in to comment.