ibiblio htaccess rules

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@355930 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-12-11 07:13:51 +00:00
parent 6abcb69443
commit 9be8351902
1 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,31 @@
RewriteEngine on
#RewriteLog c:/home/brett/scm/codehaus/maven/maven/rewrite.log
#RewriteLogLevel 9
RewriteBase /maven/
RedirectMatch permanent /dom4j/jars/dom4j-(.+).jar$ http://www.ibiblio.org/maven2/dom4j/dom4j/$1/dom4j-$1.jar
RedirectMatch permanent /cactus/jars/cactus-([0-9]+)-(.+).jar$ http://www.ibiblio.org/maven2/cactus/cactus/$1-$2/cactus-$1-$2.jar
RedirectMatch permanent /commons-logging/jars/commons-logging-1.1-dev.jar http://www.ibiblio.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar
RedirectMatch permanent /strutstestcase/jars/strutstestcase-(.+).jar http://www.ibiblio.org/maven2/strutstestcase/strutstestcase/$1/strutstestcase-$1.jar
# rewrite // to /
#RewriteRule ^/maven//(.*) /maven/$1
RewriteRule ^/(.*)$ /maven/$1 [R]
# rewrite mapped artifact
#RewriteRule ^(.*)(\.sha1)$ ${artifact-map:$1|$1}$2 [PT]
#RewriteRule ^(.*)(\.md5)$ ${artifact-map:$1|$1}$2 [PT]
#RewriteRule ^(.*)$ ${artifact-map:$1|$1}
# rewrite artifact
# don't translate plugins - they aren't copied in the reposync
RewriteRule ^([^/]+)/(jar|pom|config|distribution|java-source|dist|dtd|ear|ejb|license|licence|nbm|rar|sar|tld|war|xml|zip)s/(.+)-([0-9].+)\.([^0-9]+)(\.md5|\.sha1){0,1}$ r/$1/$3/$4/$3-$4.$5$6 [PT]
# rewrite dotted groups
RewriteRule ^r/([^/]+)\.(.*)$ r/$1/$2 [PT] [N]
# final redirect
RewriteRule ^r/(.*)$ /maven2/$1 [R]
# rewrite for browsing
#RewriteRule ^/maven$ /maven2/ [R]
#RewriteRule ^/maven/([^/]+)/(.+)s/(.*)$ /maven2/$1/$3 [R]
#RewriteRule ^/maven/(.*)$ /maven2/$1 [R]