cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m..@apache.org
Subject [cassandra-website] 01/01: ninja-fix: hack in /Cassandra/ to /doc/ redirect
Date Wed, 18 Aug 2021 16:32:45 GMT
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 ad28197cb1791bb495c0bec186bc76f6deeb823d
Author: mck <mck@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


Mime
View raw message