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 cf92fddf1 Allow new docs layout
cf92fddf1 is described below

commit cf92fddf1adacfe488d57e19e6a8d5abbd1adfb6
Author: Nikita Timofeev <stari...@gmail.com>
AuthorDate: Wed Apr 10 17:08:43 2024 +0400

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

diff --git a/.htaccess b/.htaccess
index d58f36a9c..05b183968 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/([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
+RedirectMatch permanent 
^/docs/([1-3]\.[0-9]+)/cayenne-guide/cayenne-guide-part1.html$ 
/docs/$1/cayenne-guide/#object-relational-mapping-with-cayenne
+RedirectMatch permanent 
^/docs/([1-3]\.[0-9]+)/cayenne-guide/cayenne-guide-part2.html$ 
/docs/$1/cayenne-guide/#cayenne-framework
+RedirectMatch permanent 
^/docs/([1-3]\.[0-9]+)/cayenne-guide/cayenne-guide-part3.html$ 
/docs/$1/cayenne-guide/#cayenne-framework-remote-object-persistence
+RedirectMatch permanent 
^/docs/([1-3]\.[0-9]+)/cayenne-guide/cayenne-guide-part4.html$ 
/docs/$1/cayenne-guide/#db-first-flow
+RedirectMatch permanent 
^/docs/([1-3]\.[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,8 +63,8 @@ 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/([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
+RedirectMatch permanent 
^/docs/([1-3]\.[0-9]+)/cayenne-guide/(?!index)(.*)\.html$ 
/docs/$1/cayenne-guide/#$2
+RedirectMatch permanent 
^/docs/([1-3]\.[0-9]+)/upgrade-guide/(?!index)(.*)\.html$ 
/docs/$1/upgrade-guide/#$2
 
 # Redirect everything else
 RedirectMatch permanent ^/docs/([0-9\.]+)/tutorial/(.*)\.html$ 
/docs/$1/getting-started-guide/\#$2

Reply via email to