diff --git a/ido/.htaccess b/ido/.htaccess index f7896c650..db9d207be 100644 --- a/ido/.htaccess +++ b/ido/.htaccess @@ -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 ########################