You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ti...@apache.org on 2023/01/13 08:40:30 UTC
[pulsar-site] 01/03: Clean rewrite rules
This is an automated email from the ASF dual-hosted git repository.
tison pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git
commit 019d810f603823a1f8b5447bd50ca92c66ef234f
Author: tison <wa...@gmail.com>
AuthorDate: Fri Jan 13 15:57:15 2023 +0800
Clean rewrite rules
Signed-off-by: tison <wa...@gmail.com>
---
static/.htaccess | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/static/.htaccess b/static/.htaccess
index 7d831ca7447..065dce262fa 100755
--- a/static/.htaccess
+++ b/static/.htaccess
@@ -4,14 +4,8 @@ RewriteRule "^en/(.+)$" "/$1" [R=301,DPI,L]
RewriteRule "^docs/en/(.+)$" "/docs/$1" [R=301,DPI,L]
RewriteRule "^docs/(zh-CN|zh-TW|ja|ko|fr)/(.+)$" "/$1/docs/$2" [R=301,DPI,L]
RewriteRule "^(zh-CN|zh-TW|ja|ko|fr)/docs/(.+)$" "/docs/$2" [R=301,DPI,L]
-
-RewriteRule "^docs/?$" "/docs/2.11.x" [R=301,DPI,L]
RewriteRule "^docs/(.+)-incubating/(.+)$" "https://pulsar.staged.apache.org/docs/$1-incubating/$2" [R=301,DPI,L]
-RewriteRule "^pulsar-manager-release-notes(/)?$" "/release-notes" [R=301,DPI,L]
-RewriteRule "^coding-guide(/)?$" "/contribute/develop-coding-conventions/" [R=301,DPI,L]
-RewriteRule "^contributing(/)?$" "/contribute/" [R=301,DPI,L]
-
# skip if file exists
RewriteCond %{REQUEST_FILENAME}\/index\.html -f
RewriteRule ^ - [L]
@@ -28,3 +22,7 @@ RewriteRule "^docs/(.+/)?develop-binary-protocol/?$" "/docs/$1developing-binary-
RewriteRule "^docs/(.+/)?administration-dashboard/?$" "/docs/$1administration-pulsar-manager" [R=301,DPI,L]
RewriteRule "^docs/(.+/)?security-tls-keystore/?$" "/docs/$1security-tls-authentication" [R=301,DPI,L]
RewriteRule "^docs/(.+/)?security-policy-and-supported-versions/?$" "/contribute/version-policy" [R=301,DPI,L]
+
+RewriteRule "^coding-guide/?$" "/contribute/develop-coding-conventions" [R=301,DPI,L]
+RewriteRule "^contributing/?$" "/contribute" [R=301,DPI,L]
+RewriteRule "^pulsar-manager-release-notes/?$" "/release-notes" [R=301,DPI,L]