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

ptupitsyn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite-website.git


The following commit(s) were added to refs/heads/master by this push:
     new e77011dc6a IGNITE-26326 Add redirects for old Ignite2 docs links (#258)
e77011dc6a is described below

commit e77011dc6a267c6333562ebf6d4c336f2fc38c57
Author: Alexey Alexandrov <fiveman...@gmail.com>
AuthorDate: Thu Aug 28 10:56:56 2025 +0300

    IGNITE-26326 Add redirects for old Ignite2 docs links (#258)
---
 .htaccess | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.htaccess b/.htaccess
index 8d52dfb588..3a57c1494b 100644
--- a/.htaccess
+++ b/.htaccess
@@ -187,7 +187,10 @@ RewriteRule ^releases/([2-9][^/]*)(/.*)?$ 
releases/ignite$1/$1$2 [R=301,L]
 
 # docs entry points → Ignite 3 latest
 RewriteRule ^docs/?$ docs/ignite3/latest/ [R=301,L]
-RewriteRule ^docs/latest$ docs/ignite3/latest/ [R=301,L]
+
+# special handling for /docs/latest
+RewriteRule ^docs/latest/?$ docs/ignite3/latest/ [R=301,L]
+RewriteRule ^docs/latest/(.*)$ docs/ignite2/latest/$1 [R=301,L]
 
 # add trailing slash for bare ignite2/latest
 RewriteRule ^docs/ignite2/latest$ docs/ignite2/latest/ [R=301,L]

Reply via email to