From 843a671f8ee2a1929634018eef5e5806aa3d9965 Mon Sep 17 00:00:00 2001 From: Jim Madge Date: Mon, 1 Dec 2025 10:38:00 +0000 Subject: [PATCH] Add redirects for old docs locations --- netlify.toml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/netlify.toml b/netlify.toml index 29b8aa73..08647f29 100644 --- a/netlify.toml +++ b/netlify.toml @@ -4,3 +4,17 @@ # JS dependencies must be listed in package.json command = "npm run build" publish = "dist/" + +# Redirect rules +# Splat redirect from /docs// to / +# For example /docs/en/overview to /docs/overview +[[redirects]] + from = "/docs/:lang/:slug" + to = "/docs/:slug" + status = 302 +# Splat redirect from /docs/ to / +# Previously the site was severed at allcontributors.org/docs/ +[[redirects]] + from = "/docs/*" + to = "/:splat" + status = 302