From 75ba2d8b38af7bc38208b5e47e396cfe25474067 Mon Sep 17 00:00:00 2001 From: George Adams Date: Wed, 25 Sep 2024 12:05:09 +0100 Subject: [PATCH] begin adding redirets to the new website --- netlify.toml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/netlify.toml b/netlify.toml index f438dfa2c..288a1cbf2 100644 --- a/netlify.toml +++ b/netlify.toml @@ -16,6 +16,31 @@ GATSBY_CPU_COUNT = "1" includeSubDomains; preload''' +[[redirects]] + from = "/" + to = "https://adoptium-rewrite.netlify.app/" + status = 200 + force = true + +[[redirects]] + from = "/:locale/" + to = "https://adoptium-rewrite.netlify.app/:locale/" + status = 200 + force = true + +# Ensure that all other pages stay on the old site +[[redirects]] + from = "/:locale/*" + to = "/:locale/:splat" + status = 200 + force = true + +[[redirects]] + from = "/*" + to = "/:splat" + status = 200 + force = true + [[redirects]] from = "https://blog.adoptium.net/*" to = "https://adoptium.net/blog/:splat"