Skip to content

Commit

Permalink
Update .htaccess
Browse files Browse the repository at this point in the history
  • Loading branch information
philhag committed Apr 16, 2021
1 parent 3386853 commit a58fa62
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions idpo/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,26 @@ RewriteRule ^$ https://icdd.vm.rub.de/ontology/idpo/idpo.ttl [R=303,NE,L]

# In case of accept header <application/rdf+xml>
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^$ https://icdd.vm.rub.de/ontology/idpo/idpo.rdf [R=302,NE,L]
RewriteRule ^$ https://icdd.vm.rub.de/ontology/idpo/idpo.rdf [R=303,NE,L]

# In case of accept header <application/ld+json>
RewriteCond %{HTTP_ACCEPT} application/ld+json
RewriteRule ^$ https://icdd.vm.rub.de/ontology/idpo/idpo.jsonld [R=302,NE,L]
RewriteRule ^$ https://icdd.vm.rub.de/ontology/idpo/idpo.jsonld [R=303,NE,L]

# If suffix ttl, redirect to turtle version
RewriteRule ^idpo.ttl$ https://icdd.vm.rub.de/ontology/idpo/idpo.ttl [R=302,NE,L]
RewriteRule ^idpo.ttl$ https://icdd.vm.rub.de/ontology/idpo/idpo.ttl [R=303,NE,L]

# If suffix html, redirect to html version
RewriteRule ^idpo.html$ https://icdd.vm.rub.de/ontology/idpo/ [R=302,NE,L]

# If suffix rdf, redirect to rdf version
RewriteRule ^idpo.rdf$ https://icdd.vm.rub.de/ontology/idpo/idpo.rdf [R=302,NE,L]
RewriteRule ^idpo.rdf$ https://icdd.vm.rub.de/ontology/idpo/idpo.rdf [R=303,NE,L]

# If suffix jsonld, redirect to jsonld version
RewriteRule ^idpo.jsonld$ https://icdd.vm.rub.de/ontology/idpo/idpo.jsonld [R=302,NE,L]
RewriteRule ^idpo.jsonld$ https://icdd.vm.rub.de/ontology/idpo/idpo.jsonld [R=303,NE,L]

# If suffix nt, redirect to nt version
RewriteRule ^idpo.nt$ https://icdd.vm.rub.de/ontology/idpo/idpo.nt [R=302,NE,L]
RewriteRule ^idpo.nt$ https://icdd.vm.rub.de/ontology/idpo/idpo.nt [R=303,NE,L]

# If suffix ttl, redirect to turtle version
RewriteRule ^4537_instances$ https://icdd.vm.rub.de/ontology/idpo/instances.html [R=302,NE,L]
Expand Down

0 comments on commit a58fa62

Please sign in to comment.