This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch next-asf-site
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git
The following commit(s) were added to refs/heads/next-asf-site by this push:
new 65385a444b Update .htaccess
65385a444b is described below
commit 65385a444bfb7042a1c3410f9187ffc093e19dc0
Author: Albumen Kevin <[email protected]>
AuthorDate: Sat Feb 4 12:01:10 2023 +0800
Update .htaccess
---
.htaccess | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.htaccess b/.htaccess
index 2510685338..5fbc558598 100644
--- a/.htaccess
+++ b/.htaccess
@@ -20,6 +20,7 @@
RewriteRule ^(.*)$ https://cn.dubbo.apache.org/$1 [L,R=302]
RewriteCond %{SERVER_PORT} !^443$
+ RewriteCond %{HTTP_HOST} !static
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond "%{HTTP:Accept-Language}" ^zh [NC]
@@ -32,5 +33,5 @@
RewriteRule ^/?faq/?([\w\-/]+)?$ "/en/docs3-v2/java-sdk/faq/$1" [L,R=302]
- RewriteRule ^/?zn/?([\w\-/]+)?$ "/zh-cn/$1" [L,R=302]
+ RewriteRule ^/?zh/?([\w\-/]+)?$ "/zh-cn/$1" [L,R=302]
</IfModule>