website/netlify.toml
KubeSphere CI Bot aec50d3f60
Merge pull request #2993 from fuchunlan/master
fix: Add redirects of learn and live page
2023-10-17 14:51:14 +08:00

54 lines
905 B
TOML

[context.production.environment]
HUGO_VERSION = "0.118.2"
[context.deploy-preview.environment]
HUGO_VERSION = "0.118.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 = "/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