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

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


The following commit(s) were added to refs/heads/cn-site by this push:
     new 9cc4a078ff deploy: fe3d42722c533c272cfaa65b8ee55ab2413f116c
9cc4a078ff is described below

commit 9cc4a078ff7fe4f7d27f024524726a9dc3553ee8
Author: AlbumenJ <[email protected]>
AuthorDate: Thu Feb 16 00:10:33 2023 +0000

    deploy: fe3d42722c533c272cfaa65b8ee55ab2413f116c
---
 .htaccess | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/.htaccess b/.htaccess
index 51bd9f7418..27c2abe8eb 100644
--- a/.htaccess
+++ b/.htaccess
@@ -17,20 +17,20 @@
   RewriteCond "%{HTTP:Accept-Language}" ^zh
   RewriteCond %{HTTP_HOST} !cn
   RewriteCond %{HTTP_HOST} !static
-  RewriteRule ^(.*)$ https://cn.dubbo.apache.org/$1 [L,R=302]
+  RewriteRule ^(.*)$ https://cn.dubbo.apache.org/$1 [L,R=301]
 
   RewriteCond %{SERVER_PORT} !^443$
   RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
 
   RewriteCond "%{HTTP:Accept-Language}" ^zh [NC]
-  RewriteRule ^/?(index\.html)?$ "/zh-cn/index.html" [L,R=302]
+  RewriteRule ^/?(index\.html)?$ "/zh-cn/index.html" [L,R=301]
 
-  RewriteRule ^/?(index\.html)?$ "/en/index.html" [L,R=302]
+  RewriteRule ^/?(index\.html)?$ "/en/index.html" [L,R=301]
 
   RewriteCond "%{HTTP:Accept-Language}" ^zh [NC]
-  RewriteRule ^/?faq/?([\w\-/]+)?$ "/zh-cn/docs3-v2/java-sdk/faq/$1" [L,R=302]
+  RewriteRule ^/?faq/?([\w\-/]+)?$ "/zh-cn/docs3-v2/java-sdk/faq/$1" [L,R=301]
 
-  RewriteRule ^/?faq/?([\w\-/]+)?$ "/en/docs3-v2/java-sdk/faq/$1" [L,R=302]
+  RewriteRule ^/?faq/?([\w\-/]+)?$ "/en/docs3-v2/java-sdk/faq/$1" [L,R=301]
 
-  RewriteRule ^/?zh/([\s\S]*)?$ "/zh-cn/$1" [L,R=302]
+  RewriteRule ^/?zh/([\s\S]*)?$ "/zh-cn/$1" [L,R=301]
 </IfModule>

Reply via email to