You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ur...@apache.org on 2022/02/22 07:18:44 UTC
[pulsar-site] branch asf-site-next updated: feat: add redirect rules
This is an automated email from the ASF dual-hosted git repository.
urfree pushed a commit to branch asf-site-next
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git
The following commit(s) were added to refs/heads/asf-site-next by this push:
new 2347f01 feat: add redirect rules
2347f01 is described below
commit 2347f01b70711a5991db2ebb0841509f3ed11a61
Author: LiLi <ur...@apache.org>
AuthorDate: Tue Feb 22 15:18:29 2022 +0800
feat: add redirect rules
Signed-off-by: LiLi <ur...@apache.org>
---
content/.htaccess | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/content/.htaccess b/content/.htaccess
new file mode 100755
index 0000000..6a5bd09
--- /dev/null
+++ b/content/.htaccess
@@ -0,0 +1,4 @@
+RewriteEngine On
+
+RewriteRule "^docs/en/(.+)$" "docs/$1"
+RewriteRule "^docs/(zh-CN|zh-TW|ja-JP|ko-KR|fr-FR|pt-PT)/(.+)$" "$1/docs/$2"
\ No newline at end of file