mirror of https://github.com/apache/maven.git
update rules
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@348890 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
62e8e280d5
commit
2ad3a3d8f3
|
@ -4,13 +4,16 @@ RewriteEngine on
|
|||
RewriteMap artifact-map txt:/home/projects/maven/components/maven-meeper/src/bin/artifact-map.txt
|
||||
|
||||
# rewrite mapped artifact
|
||||
RewriteRule ^/maven/(.*)$ /maven/${artifact-map:$1|$1}
|
||||
RewriteRule ^/maven/(.*)(\.sha1) /maven/${artifact-map:$1|$1}$2
|
||||
RewriteRule ^/maven/(.*)(\.md5) /maven/${artifact-map:$1|$1}$2
|
||||
RewriteRule ^/maven/(.*) /maven/${artifact-map:$1|$1}
|
||||
# rewrite artifact
|
||||
RewriteRule ^/maven/([^/]+)/(.+)s/(.+)-(.+)\.(.+)$ /r/$1/$3/$4/$3-$4.$5
|
||||
RewriteRule ^/maven/([^/]+)/(.+)s/([^0-9]+)-(.+)\.([^0-9]+)(\.md5|\.sha1){0,1}$ /r/$1/$3/$4/$3-$4.$5$6
|
||||
# rewrite dotted groups
|
||||
RewriteRule ^/r/([^/]+)\.(.*)$ /r/$1/$2 [N]
|
||||
# final redirect
|
||||
RewriteRule ^/r/(.*)$ /maven2/$1 [R]
|
||||
#RewriteRule ^/r/(.*)$ /maven2/$1 [R]
|
||||
RewriteRule ^/r/(.*)$ /maven2/$1
|
||||
|
||||
# rewrite for browsing
|
||||
RewriteRule ^/maven$ /maven2/ [R]
|
||||
|
|
Loading…
Reference in New Issue