Merge pull request #3284 from fuchunlan/redirect-doc

feat: Redirect docs
This commit is contained in:
yonghongshi 2025-08-05 10:19:53 +08:00 committed by GitHub
commit 6f1b8b772e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,16 +29,28 @@
force = true
[[redirects]]
from = "^/(zh/)?docs/(v3\\.3|v3\\.4|v4\\.1)(/.*)?$"
to = "/404.html"
status = 404
from = "/docs/"
to = "https://docs.kubesphere.com.cn "
status = 301
force = true
[[redirects]]
from = "/docs/*"
to = "https://docs.kubesphere.com.cn "
status = 301
force = true
[[redirects]]
from = "/zh/docs/"
to = "https://docs.kubesphere.com.cn "
status = 301
force = true
[[redirects]]
from = "/zh/docs/*"
to = "https://docs.kubesphere.com.cn "
status = 301
force = true
conditions = { Role = "all" }
[[headers]]
for = "^(/zh)?/docs/(v3\\.3|v3\\.4|v4\\.1)(/.*)?$"
[headers.values]
Cache-Control = "no-store, max-age=0"
X-Robots-Tag = "noindex, nofollow"