website/netlify.toml
lannyfu 39087f648b fix: Disable docs url
Signed-off-by: lannyfu <lannyfu@kubesphere.io>
2025-07-31 10:01:28 +08:00

41 lines
857 B
TOML

[context.production.environment]
HUGO_VERSION = "0.126.2"
[context.deploy-preview.environment]
HUGO_VERSION = "0.126.2"
[[redirects]]
from = "/log/*"
to = "https://log.kubesphere.io/:splat"
status = 308
force = true
[[redirects]]
from = "/tr/forum/*"
to = "http://139.198.113.75:9900/tr/forum/:splat"
status = 200
force = true
[[redirects]]
from = "/forum/*"
to = "https://ask.kubesphere.io/forum/:splat"
status = 301
force = true
[[redirects]]
from = "/forum/"
to = "https://ask.kubesphere.io/forum/"
status = 301
force = true
[[redirects]]
from = "^(/zh)?/docs/(v3\\.3|v3\\.4|v4\\.1)(/.*)?$"
to = "/404.html"
status = 404
force = true
[[headers]]
for = "^(/zh)?/docs/(v3\\.3|v3\\.4|v4\\.1)(/.*)?$"
[headers.values]
Cache-Control = "no-store, max-age=0"
X-Robots-Tag = "noindex, nofollow"