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

robbie pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/artemis-website.git

commit 71ee1f65ebdc883d90d8c951ae2a6299e35fb808
Author: Robbie Gemmell <[email protected]>
AuthorDate: Fri Jan 23 11:56:50 2026 +0000

    move entries for old console docs to new subdir .htaccess to try restoring 
broken redirects
---
 src/.htaccess                                          | 6 ++----
 src/components/artemis-console/documentation/.htaccess | 9 ++++++---
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/src/.htaccess b/src/.htaccess
index 97434ff..e963b2f 100644
--- a/src/.htaccess
+++ b/src/.htaccess
@@ -14,7 +14,5 @@ RewriteRule ^components/artemis/documentation/2.40.0(/?.*)$ 
https://%{SERVER_NAM
 RewriteRule ^components/artemis/documentation/2.41.0(/?.*)$ 
https://%{SERVER_NAME}/components/artemis/documentation/previous/2.41.0$1 
[R=301,L]
 RewriteRule ^components/artemis/documentation/2.42.0(/?.*)$ 
https://%{SERVER_NAME}/components/artemis/documentation/previous/2.42.0$1 
[R=301,L]
 RewriteRule ^components/artemis/documentation/2.43.0(/?.*)$ 
https://%{SERVER_NAME}/components/artemis/documentation/previous/2.43.0$1 
[R=301,L]
-RewriteRule ^components/artemis-console/documentation(/?)$ 
https://%{SERVER_NAME}/components/artemis-console/documentation/latest/ 
[R=301,L]
-RewriteRule ^components/artemis-console/documentation/index(.*)$ 
https://%{SERVER_NAME}/components/artemis-console/documentation/latest/ 
[R=301,L]
-RewriteRule ^components/artemis-console/documentation/console(.*)$ 
https://%{SERVER_NAME}/components/artemis-console/documentation/latest/ 
[R=301,L]
-RewriteRule ^components/artemis-console/documentation/deploying(.*)$ 
https://%{SERVER_NAME}/components/artemis-console/documentation/latest/ 
[R=301,L]
+
+# See also components/artemis-console/documentation/.htacess for handling 
specific to the console documentation
diff --git a/src/components/artemis-console/documentation/.htaccess 
b/src/components/artemis-console/documentation/.htaccess
index 25c801f..8a58409 100644
--- a/src/components/artemis-console/documentation/.htaccess
+++ b/src/components/artemis-console/documentation/.htaccess
@@ -2,10 +2,13 @@ RewriteEngine On
 
 RewriteBase /components/artemis-console/documentation/
 
-# 1. There's no landing page so redirect to the latest docs
-RewriteRule ^$ latest/ [L,R=301]
+# 1. There's no longer a landing page [or old docs] so redirect to the latest 
docs
+RewriteRule ^$ latest/ [R=301,L]
+RewriteRule ^index(.*)$ latest/ [R=301,L]
+RewriteRule ^console(.*)$ latest/ [R=301,L]
+RewriteRule ^deploying(.*)$ latest/ [R=301,L]
 
-# 2. Force the trailing slash for the "bare" version URL so paths don't break
+# 2. Force the trailing slash for the "bare" newest version URL so internal 
rewrite paths don't break
 RewriteRule ^version/1.5.0$ version/1.5.0/ [R=301,L]
 
 # 3. Internal rewrite so that the latest version actually loads the latest docs


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to