This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git
The following commit(s) were added to refs/heads/master by this push:
new fe3d42722c Update .htaccess
fe3d42722c is described below
commit fe3d42722c533c272cfaa65b8ee55ab2413f116c
Author: Albumen Kevin <[email protected]>
AuthorDate: Thu Feb 16 08:06:49 2023 +0800
Update .htaccess
---
.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>