From bfabacaf0e0d850fe42a5ff92923060e785eff8c Mon Sep 17 00:00:00 2001 From: lannyfu Date: Wed, 11 Oct 2023 11:12:15 +0800 Subject: [PATCH] fix: Add redirects of learn and live page Signed-off-by: lannyfu --- netlify.toml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/netlify.toml b/netlify.toml index 78c1a0199..d24eda857 100644 --- a/netlify.toml +++ b/netlify.toml @@ -51,3 +51,27 @@ to = "https://ask.kubesphere.io/forum/" status = 301 force = true + +[[redirects]] + from = "/learn/" + to = "/zh/learn/" + status = 301 + force = true + +[[redirects]] + from = "/learn/*" + to = "/zh/learn/*" + status = 301 + force = true + +[[redirects]] + from = "/live/" + to = "/zh/live/" + status = 301 + force = true + +[[redirects]] + from = "/live/*" + to = "/zh/live/*" + status = 301 + force = true