You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2021/09/21 07:40:03 UTC

[echarts-website] branch asf-site updated: fix redirection

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

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


The following commit(s) were added to refs/heads/asf-site by this push:
     new 35f9927  fix redirection
35f9927 is described below

commit 35f99273bb6a97a5d71c1060cd3a9e3786dc06ca
Author: pissang <bm...@gmail.com>
AuthorDate: Tue Sep 21 15:39:52 2021 +0800

    fix redirection
---
 .htaccess | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.htaccess b/.htaccess
index 03e0c74..d9c28f1 100644
--- a/.htaccess
+++ b/.htaccess
@@ -52,11 +52,11 @@ RedirectMatch 404 /\.asf\.yaml
     RewriteRule ^/?(index[.]html)?$ "/en/index.html" [L,R=302]
 
     RewriteCond "%{HTTP:Accept-Language}" ^zh [NC]
-    RewriteRule ^/?([a-zA-Z0-9\_\-])+[.]html$ "/zh/$1.html" [L,R=302]
+    RewriteRule ^/?([a-zA-Z0-9\_\-]+)[.]html$ "/zh/$1.html" [L,R=302]
 
     RewriteCond "%{HTTP:Accept-Language}" ^en [NC]
-    RewriteRule ^/?([a-zA-Z0-9\_\-])+[.]html$ "/en/$1.html" [L,R=302]
+    RewriteRule ^/?([a-zA-Z0-9\_\-]+)[.]html$ "/en/$1.html" [L,R=302]
 
-    RewriteRule ^/?([a-zA-Z0-9\_\-])+[.]html$ "/en/$1.html" [L,R=302]
+    RewriteRule ^/?([a-zA-Z0-9\_\-]+)[.]html$ "/en/$1.html" [L,R=302]
 </IfModule>
 

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