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
|
RewriteMap artifact-map txt:/home/projects/maven/components/maven-meeper/src/bin/artifact-map.txt
|
||||||
|
|
||||||
# rewrite mapped artifact
|
# 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
|
# 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
|
# rewrite dotted groups
|
||||||
RewriteRule ^/r/([^/]+)\.(.*)$ /r/$1/$2 [N]
|
RewriteRule ^/r/([^/]+)\.(.*)$ /r/$1/$2 [N]
|
||||||
# final redirect
|
# final redirect
|
||||||
RewriteRule ^/r/(.*)$ /maven2/$1 [R]
|
#RewriteRule ^/r/(.*)$ /maven2/$1 [R]
|
||||||
|
RewriteRule ^/r/(.*)$ /maven2/$1
|
||||||
|
|
||||||
# rewrite for browsing
|
# rewrite for browsing
|
||||||
RewriteRule ^/maven$ /maven2/ [R]
|
RewriteRule ^/maven$ /maven2/ [R]
|
||||||
|
|
Loading…
Reference in New Issue