From 9be83519024cca5eb79c1d619e1922db159e124d Mon Sep 17 00:00:00 2001 From: Brett Leslie Porter Date: Sun, 11 Dec 2005 07:13:51 +0000 Subject: [PATCH] ibiblio htaccess rules git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@355930 13f79535-47bb-0310-9956-ffa450edef68 --- maven-meeper/src/bin/ibiblio-htaccess | 31 +++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 maven-meeper/src/bin/ibiblio-htaccess diff --git a/maven-meeper/src/bin/ibiblio-htaccess b/maven-meeper/src/bin/ibiblio-htaccess new file mode 100644 index 0000000000..bdc02a51f4 --- /dev/null +++ b/maven-meeper/src/bin/ibiblio-htaccess @@ -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] +