You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by mc...@apache.org on 2021/08/18 20:34:33 UTC
[cassandra-website] 02/02: ninja-fix: hack in /Cassandra/ to /doc/
redirect
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 1aa3280333f17909b9a7c35400e8459e990707a9
Author: mck <mc...@apache.org>
AuthorDate: Wed Aug 18 18:30:45 2021 +0200
ninja-fix: hack in /Cassandra/ to /doc/ redirect
---
content/.htaccess | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/content/.htaccess b/content/.htaccess
index d8b7945..d38e3f4 100755
--- a/content/.htaccess
+++ b/content/.htaccess
@@ -9,6 +9,11 @@ RewriteCond %{REQUEST_URI} !^/doc/.*
RewriteCond %{REQUEST_URI} ^(.*)/$
RewriteRule ^(.*)/$ /_/$1.html [R=301,L]
+# temp – while in-tree antora are building to /Cassandra/
+RewriteCond %{REQUEST_URI} !^/doc/.*
+RewriteCond %{REQUEST_URI} ^/Cassandra/(.*)$
+RewriteRule ^/?Cassandra/(.*)$ /doc/$1 [R=301,L]
+
# development in-tree docs have been moved to cassandra-website
RewriteCond %{REQUEST_URI} ^/doc/latest/development/(.+).html [NC]
RewriteRule ^/?doc/latest/development/(.+).html$ /_/development/$1.html [R=301,L]
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org