This is an automated email from the ASF dual-hosted git repository.

ntimofeev pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/cayenne-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 7e16fb4fa Allow new docs layout
7e16fb4fa is described below

commit 7e16fb4faf7c1d5379bb4ba5e4417efbc8062de3
Author: Nikita Timofeev <stari...@gmail.com>
AuthorDate: Wed Apr 10 16:55:34 2024 +0400

    Allow new docs layout
---
 .htaccess | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/.htaccess b/.htaccess
index 915f2da8d..d58f36a9c 100644
--- a/.htaccess
+++ b/.htaccess
@@ -43,11 +43,11 @@ Redirect permanent /legacy-ant-documentation-export.html /
 ##################################################
 
 # Redirect main sections of Cayenne Guide
-RedirectMatch permanent 
^/docs/([0-9\.]+)/cayenne-guide/cayenne-guide-part1.html$ 
/docs/$1/cayenne-guide/#object-relational-mapping-with-cayenne
-RedirectMatch permanent 
^/docs/([0-9\.]+)/cayenne-guide/cayenne-guide-part2.html$ 
/docs/$1/cayenne-guide/#cayenne-framework
-RedirectMatch permanent 
^/docs/([0-9\.]+)/cayenne-guide/cayenne-guide-part3.html$ 
/docs/$1/cayenne-guide/#cayenne-framework-remote-object-persistence
-RedirectMatch permanent 
^/docs/([0-9\.]+)/cayenne-guide/cayenne-guide-part4.html$ 
/docs/$1/cayenne-guide/#db-first-flow
-RedirectMatch permanent 
^/docs/([0-9\.]+)/cayenne-guide/cayenne-guide-part5.html$ 
/docs/$1/cayenne-guide/#cayenne-additional-modules
+RedirectMatch permanent 
^/docs/([3-4]\.[0-9]+)/cayenne-guide/cayenne-guide-part1.html$ 
/docs/$1/cayenne-guide/#object-relational-mapping-with-cayenne
+RedirectMatch permanent 
^/docs/([3-4]\.[0-9]+)/cayenne-guide/cayenne-guide-part2.html$ 
/docs/$1/cayenne-guide/#cayenne-framework
+RedirectMatch permanent 
^/docs/([3-4]\.[0-9]+)/cayenne-guide/cayenne-guide-part3.html$ 
/docs/$1/cayenne-guide/#cayenne-framework-remote-object-persistence
+RedirectMatch permanent 
^/docs/([3-4]\.[0-9]+)/cayenne-guide/cayenne-guide-part4.html$ 
/docs/$1/cayenne-guide/#db-first-flow
+RedirectMatch permanent 
^/docs/([3-4]\.[0-9]+)/cayenne-guide/cayenne-guide-part5.html$ 
/docs/$1/cayenne-guide/#cayenne-additional-modules
 # Tutorial
 RedirectMatch permanent ^/docs/([0-9\.]+)/tutorial/getting-started-part1.html$ 
/docs/$1/getting-started-guide/#setting-up-the-environment
 RedirectMatch permanent ^/docs/([0-9\.]+)/tutorial/getting-started-part2.html$ 
/docs/$1/getting-started-guide/#learning-mapping-basics
@@ -63,7 +63,7 @@ RedirectMatch permanent 
^/docs/([0-9\.]+)/tutorial-rop/getting-started-rop-part1
 RedirectMatch permanent 
^/docs/([0-9\.]+)/tutorial-rop/getting-started-rop-part2.html$ 
/docs/$1/getting-started-rop/#remote-object-persistence-quick-start
 
 # Redirect all except index.html to exclude cyclic redirection
-RedirectMatch permanent ^/docs/([0-9\.]+)/cayenne-guide/(?!index)(.*)\.html$ 
/docs/$1/cayenne-guide/#$2
+RedirectMatch permanent 
^/docs/([3-4]\.[0-9]+)/cayenne-guide/(?!index)(.*)\.html$ 
/docs/$1/cayenne-guide/#$2
 RedirectMatch permanent ^/docs/([0-9\.]+)/upgrade-guide/(?!index)(.*)\.html$ 
/docs/$1/upgrade-guide/#$2
 
 # Redirect everything else

Reply via email to