Skip to content

Commit

Permalink
Bug fix in redirect
Browse files Browse the repository at this point in the history
The previous redirect was wrong due to some issues in handling regex.
  • Loading branch information
essepuntato authored Apr 18, 2017
1 parent 9e1f5d0 commit 551b481
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ido/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ Options +FollowSymLinks
RewriteEngine on

# IDO
RewriteRule ^onto/([0-9]+(\.[0-9]+)+)\.(html|xml|json|ttl|nt)$ https://rawgit.com/essepuntato/ido/master/model/ido/$1/onto.$2 [R=303,L]
RewriteRule ^onto\.(html|xml|json|ttl|nt)$ https://rawgit.com/essepuntato/ido/master/model/ido/current/onto.$1 [R=303,L]
RewriteRule ^/?([0-9]+(\.[0-9]+)+)\.(html|xml|json|ttl|nt)$ https://rawgit.com/essepuntato/ido/master/model/ido/$1/onto.$3 [R=303,L]
RewriteRule ^/?\.(html|xml|json|ttl|nt)$ https://rawgit.com/essepuntato/ido/master/model/ido/current/onto.$1 [R=303,L]

# IDO modules
RewriteRule ^onto([^/]+)/([0-9]+(\.[0-9]+)+)\.(html|xml|json|ttl|nt)$ https://rawgit.com/essepuntato/ido/master/model/$1/$2/onto.$3 [R=303,L]
RewriteRule ^onto([^/]+)\.(html|xml|json|ttl|nt)$ https://rawgit.com/essepuntato/ido/master/model/$1/current/onto.$2 [R=303,L]
RewriteRule ^(.+)/([0-9]+(\.[0-9]+)+)\.(html|xml|json|ttl|nt)$ https://rawgit.com/essepuntato/ido/master/model/$1/$2/onto.$4 [R=303,L]
RewriteRule ^/?(.+)\.(html|xml|json|ttl|nt)$ https://rawgit.com/essepuntato/ido/master/model/$1/current/onto.$2 [R=303,L]


### CONFIGURATION redir ontology/data: begin ########################
Expand Down

0 comments on commit 551b481

Please sign in to comment.