# Redirects for legacy URLs and routes the site no longer serves directly.

# The api reference and the runner docs are separate products, published in
# english only. Docusaurus served an empty localized copy of them.
/zh-cn/api/* /api/:splat 301
/zh-tw/api/* /api/:splat 301
/zh-cn/runner/* /runner/:splat 301
/zh-tw/runner/* /runner/:splat 301

# The version served at the root of a product is also reachable under its
# number, which is what the release notes and old links use.
/api/1.27/* /api/:splat 301
/runner/3/* /runner/:splat 301
/1.27/* /:splat 301

# The local search plugin had a results page of its own, algolia docsearch is a
# modal opened from any page.
/search /  301
/zh-cn/search /zh-cn/ 301
/zh-tw/search /zh-tw/ 301
