You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ol...@apache.org on 2013/03/01 17:17:21 UTC

svn commit: r1451629 - /commons/cms-site/trunk/content/resources/.htaccess

Author: olamy
Date: Fri Mar  1 16:17:21 2013
New Revision: 1451629

URL: http://svn.apache.org/r1451629
Log:
add javadocs generic redirect a pattern was to use api-release/ or apix.x.x.

Modified:
    commons/cms-site/trunk/content/resources/.htaccess

Modified: commons/cms-site/trunk/content/resources/.htaccess
URL: http://svn.apache.org/viewvc/commons/cms-site/trunk/content/resources/.htaccess?rev=1451629&r1=1451628&r2=1451629&view=diff
==============================================================================
--- commons/cms-site/trunk/content/resources/.htaccess (original)
+++ commons/cms-site/trunk/content/resources/.htaccess Fri Mar  1 16:17:21 2013
@@ -1,6 +1,13 @@
 #until all sites redeployed
 #Redirect /proper/ http://commons.apache.org/components.html
 
+#javadocs generic redirect a pattern was to use api-release/ or apix.x.x.
+RedirectMatch ^/(.*)/api-release/(.*) /proper/commons-$1/javadocs/api-release/$2
+RedirectMatch ^/(.*)/api(.*)/(.*) /proper/commons-$1/javadocs/api$2/$3
+RedirectMatch /proper/commons-(.*)/api-release/(.*) /proper/commons-$1/javadocs/api-release/$2
+RedirectMatch /proper/commons-(.*)/api(.*)/(.*) /proper/commons-$1/javadocs/api$2/$3
+
+
 # redirect from previous path
 
 #propers