You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2022/04/14 02:27:12 UTC

[dubbo-website] branch asf-site updated: Try fix language redirect

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

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


The following commit(s) were added to refs/heads/asf-site by this push:
     new 3bd908aac7 Try fix language redirect
3bd908aac7 is described below

commit 3bd908aac776e6bbe632bc68cd9af979905fc877
Author: Albumen Kevin <jh...@gmail.com>
AuthorDate: Thu Apr 14 10:27:08 2022 +0800

    Try fix language redirect
---
 .htaccess | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.htaccess b/.htaccess
index f36f1c020c..8d2ce2fe8c 100644
--- a/.htaccess
+++ b/.htaccess
@@ -6,7 +6,10 @@ RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
 # language starts with ZH
 RewriteCond %{HTTP:Accept-Language} ^zh [NC]
 RewriteRule ^$ /zh/ [L,R=301]
+RewriteCond %{HTTP:Accept-Language} ^zh [NC]
+RewriteRule ^/ /zh/ [L,R=301]
 
 # else redirect to the English version
 RewriteRule ^$ /en/ [L,R=301]
+RewriteRule ^/ /en/ [L,R=301]
 </IfModule>