You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by aa...@apache.org on 2012/11/08 18:48:26 UTC
svn commit: r1407184 - in /cayenne/site/cms/trunk: content/.htaccess
lib/path.pm
Author: aadamchik
Date: Thu Nov 8 17:48:26 2012
New Revision: 1407184
URL: http://svn.apache.org/viewvc?rev=1407184&view=rev
Log:
trying to remap the urls of legacy doc folders
Modified:
cayenne/site/cms/trunk/content/.htaccess
cayenne/site/cms/trunk/lib/path.pm
Modified: cayenne/site/cms/trunk/content/.htaccess
URL: http://svn.apache.org/viewvc/cayenne/site/cms/trunk/content/.htaccess?rev=1407184&r1=1407183&r2=1407184&view=diff
==============================================================================
--- cayenne/site/cms/trunk/content/.htaccess (original)
+++ cayenne/site/cms/trunk/content/.htaccess Thu Nov 8 17:48:26 2012
@@ -1,7 +1,9 @@
-# Deleted pages
+# Individual deleted/renamed pages
Redirect permanent /commercial-support.html /support.html
Redirect permanent /documentation.html /doc/index.html
# Remaping legacy doc folders
Redirect permanent /doc12/ /doc/1.2/
+Redirect permanent /doc20/ /doc/2.0/
+Redirect permanent /doc30/ /doc/3.0/
Modified: cayenne/site/cms/trunk/lib/path.pm
URL: http://svn.apache.org/viewvc/cayenne/site/cms/trunk/lib/path.pm?rev=1407184&r1=1407183&r2=1407184&view=diff
==============================================================================
--- cayenne/site/cms/trunk/lib/path.pm (original)
+++ cayenne/site/cms/trunk/lib/path.pm Thu Nov 8 17:48:26 2012
@@ -8,19 +8,19 @@ our @patterns = (
# Legacy javadocs
[qr!^/doc/1.2/api/.*\.html$!, single_narrative => { template => "apidocs.html" }],
- [qr!^/doc20/api/.*\.html$!, single_narrative => { template => "apidocs.html" }],
- [qr!^/doc30/api/.*\.html$!, single_narrative => { template => "apidocs.html" }],
+ [qr!^/doc/2.0/api/.*\.html$!, single_narrative => { template => "apidocs.html" }],
+ [qr!^/doc/3.0/api/.*\.html$!, single_narrative => { template => "apidocs.html" }],
# Legacy docs
[qr!^/doc/1.2/(?\!api/).*\.html$!, single_narrative => {
template => "legacy_confluence.html",
menu => "legacy_menu12.html",
}],
- [qr!^/doc20/(?\!api/).*\.html$!, single_narrative => {
+ [qr!^/doc/2.0/(?\!api/).*\.html$!, single_narrative => {
template => "legacy_confluence.html",
menu => "legacy_menu20.html",
}],
- [qr!^/doc30/(?\!api/).*\.html$!, single_narrative => {
+ [qr!^/doc/3.0/(?\!api/).*\.html$!, single_narrative => {
template => "legacy_confluence.html",
menu => "legacy_menu30.html",
}],