From 307cb94e3b0aa14710752f0cfe3f5e54c4421801 Mon Sep 17 00:00:00 2001 From: Jens L Date: Mon, 13 Dec 2021 21:42:31 +0100 Subject: [PATCH] website: add initial redirect (#1918) * website: add initial redirect Signed-off-by: Jens Langhammer * website: add integrations too Signed-off-by: Jens Langhammer * website: add docs to netlify config Signed-off-by: Jens Langhammer * website: use splats correctly Signed-off-by: Jens Langhammer * add status Signed-off-by: Jens Langhammer --- website/netlify.toml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/website/netlify.toml b/website/netlify.toml index 4025e2d4e..eddb8831d 100644 --- a/website/netlify.toml +++ b/website/netlify.toml @@ -2,10 +2,34 @@ from = "/discord" to = "https://discord.gg/jg33eMhnj6" +# Migration from docs to separate directory [[redirects]] from = "/docs/integrations/*" to = "/integrations/:splat" +# Docusaurus update removes index +[[redirects]] + from = "/docs/:firstPart/index" + to = "/docs/:firstPart/" + status = 301 + force = true +[[redirects]] + from = "/docs/:firstPart/:secondPart/index" + to = "/docs/:firstPart/:secondPart/" + status = 301 + force = true +[[redirects]] + from = "/integrations/:firstPart/index" + to = "/integrations/:firstPart/" + status = 301 + force = true +[[redirects]] + from = "/integrations/:firstPart/:secondPart/index" + to = "/integrations/:firstPart/:secondPart/" + status = 301 + force = true + +# ?go-get=1 downloads [[redirects]] from = "/*" to = "/.netlify/functions/go-get" @@ -13,6 +37,7 @@ force = true query = {go-get = "1"} +# Container registry [[redirects]] from = "/v2" to = "/.netlify/functions/oci-proxy"