Skip to content

Commit

Permalink
Improved ChoCo redirect rules
Browse files Browse the repository at this point in the history
  • Loading branch information
andreamust authored Jun 30, 2023
1 parent cdafc99 commit 085a99c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions polifonia/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ RewriteRule ^ontology/semanticroman(/) %{ENV:TEST_ONTOLOGY_OWL_URL} [R=303,L]
RewriteRule ^resource/semanticroman(/)([a-zA-Z-_0-9]+)?(/)?([a-zA-Z-_0-9]+)?(/)?$ %{ENV:TEST_RESOURCE_URL}/$2$3$4 [R=303,L]

# CHOCO URL
SetEnvIf Request_URI ^.*$ JAMS_ONTOLOGY_URL=https://raw.githubusercontent.com/polifonia-project/jams-ontology/main/ontology/jams.owl
SetEnvIf Request_URI ^.*$ JAMS_ONTOLOGY_URL=https://polifonia.disi.unibo.it/choco/ontology
SetEnvIf Request_URI ^.*$ JAMS_ONTOLOGY_OWL_URL=https://raw.githubusercontent.com/polifonia-project/jams-ontology/main/ontology/jams.owl
SetEnvIf Request_URI ^.*$ CHOCO_DATA_URL=https://polifonia.disi.unibo.it/choco/resource

# CHOCO REDIRECTS
RewriteRule ^ontology/choco(/)([a-zA-Z-_0-9]+)(/)?([0-9].[0-9])?(/)?$ %{ENV:JAMS_ONTOLOGY_URL}#$2 [R=303,L]
RewriteRule ^ontology/choco(/) %{ENV:JAMS_ONTOLOGY_URL} [R=303,L]
RewriteRule ^ontology/choco(/) %{ENV:JAMS_ONTOLOGY_OWL_URL} [R=303,L]
RewriteRule ^resource/choco(/)([a-zA-Z-_0-9]+)?(/)?([a-zA-Z-_0-9]+)?(/)?$ %{ENV:CHOCO_DATA_URL}/$2$3$4 [R=303,L]

# Rules for version-aware URIs of ontologies
Expand Down

0 comments on commit 085a99c

Please sign in to comment.