cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m..@apache.org
Subject [cassandra-website] 11/17: fix .htaccess don't redirect /doc/latest/ and /_/ redirects
Date Sat, 17 Jul 2021 12:09:17 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 efa16fb00fbb1b457dbb52d591f3d794dd358e56
Author: mck <mck@apache.org>
AuthorDate: Wed Jul 14 18:56:16 2021 +0200

    fix .htaccess
     don't redirect /doc/latest/
     and /_/ redirects
---
 content/.htaccess | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/content/.htaccess b/content/.htaccess
index 2417a9a..e3d4c8e 100755
--- a/content/.htaccess
+++ b/content/.htaccess
@@ -3,11 +3,11 @@ RewriteEngine On
 RewriteCond %{HTTPS} !=on
 RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
 
-RedirectMatch 301 "/$" "/_/index.html"
+RedirectMatch 301 "^/$" "/_/index.html"
 
 RewriteCond %{REQUEST_URI} !^/doc/.*
 RewriteCond %{REQUEST_URI} ^(.*)/$
-RewriteRule ^(.*)/$ /_$1.html [R=301,L]
+RewriteRule ^(.*)/$ /_/$1.html [R=301,L]
 
 
 <IfModule mod_rewrite.c>

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


Mime
View raw message