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 147c4c4511 Update .htaccess
147c4c4511 is described below

commit 147c4c4511f4cc2dbf5b729f574b1914bdf44bfe
Author: Albumen Kevin <[email protected]>
AuthorDate: Thu Feb 16 08:01:28 2023 +0800

    Update .htaccess
---
 .htaccess | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/.htaccess b/.htaccess
index 61cbb0d858..6fd1bbe066 100644
--- a/.htaccess
+++ b/.htaccess
@@ -23,14 +23,14 @@
   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]
 </IfModule>

Reply via email to