You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by hy...@apache.org on 2020/11/03 11:38:16 UTC
[dubbo-website] branch master updated: add redirect rule for old
style url
This is an automated email from the ASF dual-hosted git repository.
hyunkun 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 b09780a add redirect rule for old style url
b09780a is described below
commit b09780a145681590afb492a95c86aac159fa488c
Author: Huang YunKun <ht...@gmail.com>
AuthorDate: Tue Nov 3 19:37:47 2020 +0800
add redirect rule for old style url
---
.htaccess | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/.htaccess b/.htaccess
index 9e12e11..de7998a 100644
--- a/.htaccess
+++ b/.htaccess
@@ -17,4 +17,17 @@
</IfModule>
+<IfModule mod_rewrite.c>
+ RewriteEngine On
+
+ RedirectMatch 301 /zh-cn/docs/admin/(.*).html /zh-cn/docs/2.7/admin/$1
+ RedirectMatch 301 /en-us/docs/admin/(.*).html /en-us/docs/2.7/admin/$1
+ RedirectMatch 301 /zh-cn/docs/dev/(.*).html /zh-cn/docs/2.7/dev/$1
+ RedirectMatch 301 /en-us/docs/dev/(.*).html /en-us/docs/2.7/dev/$1
+ RedirectMatch 301 /zh-cn/docs/user/(.*).html /zh-cn/docs/2.7/user/$1
+ RedirectMatch 301 /en-us/docs/user/(.*).html /en-us/docs/2.7/user/$1
+ RedirectMatch 301 /zh-cn/docs/source_code_guide/(.*).html /zh-cn/docs/2.7/source_code_guide/$1
+ RedirectMatch 301 /en-us/docs/source_code_guide/(.*).html /en-us/docs/2.7/source_code_guide/$1
+</IfModule>
+
ErrorDocument 404 https://dubbo.apache.org/