This is an automated email from the ASF dual-hosted git repository. mck pushed a commit to branch asf-staging in repository https://gitbox.apache.org/repos/asf/cassandra-website.git
commit 875f857bde3fb4baccf424051dca667931595aea Author: mck <[email protected]> AuthorDate: Wed Aug 4 21:27:44 2021 +0200 Documentation links broken, indexed by Google (CASSANDRA-16821) --- content/.htaccess | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/content/.htaccess b/content/.htaccess index c87afe0..b6599d1 100755 --- a/content/.htaccess +++ b/content/.htaccess @@ -9,6 +9,20 @@ 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/index.html [NC] +RewriteCond %{REQUEST_URI} !^/doc/latest/cassandra [NC] +RewriteRule ^/?doc/latest/(.+)$ /doc/latest/cassandra/$1 [R=301,L] +RewriteCond %{REQUEST_URI} !^/doc/stable/index.html [NC] +RewriteCond %{REQUEST_URI} !^/doc/stable/cassandra [NC] +RewriteRule ^/?doc/stable/(.+)$ /doc/stable/cassandra/$1 [R=301,L] +RewriteCond %{REQUEST_URI} !^/doc/4.0/index.html [NC] +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/index.html [NC] +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: [email protected] For additional commands, e-mail: [email protected]
