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

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


The following commit(s) were added to refs/heads/asf-site-v2 by this push:
     new 2e1aef4252 Update .htaccess
2e1aef4252 is described below

commit 2e1aef42520b32a2edc72e36b294db1faa9b9544
Author: Albumen Kevin <[email protected]>
AuthorDate: Thu Jul 27 17:16:10 2023 +0800

    Update .htaccess
---
 .htaccess | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.htaccess b/.htaccess
index 1b1a3fdf30..dd31cb5216 100644
--- a/.htaccess
+++ b/.htaccess
@@ -14,7 +14,10 @@
 <IfModule mod_rewrite.c>
   RewriteEngine On
 
-
+  RewriteCond "%{HTTP:Accept-Language}" ^zh
+  RewriteCond %{HTTP_HOST} !cn
+  RewriteCond %{HTTP_HOST} !static
+  RewriteRule ^(.*)$ https://cn.dubbo.apache.org/$1 [L,R=301]
 
   RewriteCond %{SERVER_PORT} !^443$
   RewriteCond %{HTTP_HOST} !static

Reply via email to