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

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


The following commit(s) were added to refs/heads/asf-site by this push:
     new bdc0c77  Documentation links broken, indexed by Google 
(CASSANDRA-16821)
bdc0c77 is described below

commit bdc0c7725958d573bb1ec6f51c27aaf32fd88a4c
Author: mck <m...@apache.org>
AuthorDate: Wed Aug 4 21:27:44 2021 +0200

    Documentation links broken, indexed by Google (CASSANDRA-16821)
---
 content/.htaccess | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/content/.htaccess b/content/.htaccess
index c87afe0..5b91343 100755
--- a/content/.htaccess
+++ b/content/.htaccess
@@ -9,6 +9,16 @@ RewriteCond %{REQUEST_URI} !^/doc/.*
 RewriteCond %{REQUEST_URI} ^(.*)/$
 RewriteRule ^(.*)/$ /_/$1.html [R=301,L]
 
+# redirects to new antora in-tree docs
+RewriteCond %{REQUEST_URI} !^/doc/latest/cassandra [NC]
+RewriteRule ^/?doc/latest/(.*)$ /doc/latest/cassandra/$1 [R=301,L]
+RewriteCond %{REQUEST_URI} !^/doc/stable/cassandra [NC]
+RewriteRule ^/?doc/stable/(.*)$ /doc/stable/cassandra/$1 [R=301,L]
+RewriteCond %{REQUEST_URI} !^/doc/4.0/cassandra [NC]
+RewriteRule ^/?doc/4.0/(.*)$ /doc/4.0/cassandra/$1 [R=301,L]
+RewriteCond %{REQUEST_URI} !^/doc/3.11/cassandra [NC]
+RewriteRule ^/?doc/3.11/(.*)$ /doc/3.11/cassandra/$1 [R=301,L]
+
 
 <IfModule mod_rewrite.c>
     RewriteEngine on

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to