You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by su...@apache.org on 2020/11/12 08:22:16 UTC
[incubator-echarts-website] branch asf-site updated: fix .htaccess
rule
This is an automated email from the ASF dual-hosted git repository.
sushuang pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-website.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 1b81031 fix .htaccess rule
1b81031 is described below
commit 1b81031815f7ad9f7e5ba551b5c19da31054e187
Author: 100pah <su...@gmail.com>
AuthorDate: Thu Nov 12 16:21:56 2020 +0800
fix .htaccess rule
---
.htaccess | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/.htaccess b/.htaccess
index fb5f8b3..c77a3bb 100644
--- a/.htaccess
+++ b/.htaccess
@@ -23,10 +23,8 @@ Header set Access-Control-Allow-Headers: "*"
RewriteEngine On
RewriteCond "%{HTTP:Accept-Language}" "^zh" [NC]
-RewriteRule "^/$" "/zh/index.html"
-RewriteRule "^/index.html" "/zh/index.html" [L,R=301]
+RewriteRule "^/(index.html)?$" "/zh/index.html" [L,R=301]
RewriteCond "%{HTTP:Accept-Language}" "^en" [NC]
-RewriteRule "^/$" "/en/index.html"
-RewriteRule "^/index.html" "/en/index.html" [L,R=301]
+RewriteRule "^/(index.html)?$" "/en/index.html" [L,R=301]
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org