From d7e8f9ef435cbcb055375c2b6aa5dbd985d8abc1 Mon Sep 17 00:00:00 2001 From: Ashley Davis Date: Wed, 10 Nov 2021 15:09:26 +0000 Subject: [PATCH] redirect all 404s to the root of the site Signed-off-by: Ashley Davis --- _redirects | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_redirects b/_redirects index 21d1045ad21..8a0fc952efd 100644 --- a/_redirects +++ b/_redirects @@ -77,3 +77,7 @@ https://docs.cert-manager.io/en/release-0.16/* https://cert-manager.io/docs/rele https://docs.cert-manager.io/en/release-* https://cert-manager.io/docs/release-notes/release-notes-:splat 301! https://docs.cert-manager.io https://cert-manager.io/docs 301! https://docs.cert-manager.io/* https://cert-manager.io/docs/:splat 302! + +# redirect anything else to our custom 404 page. this is required as the site generator / theme uses relative links for the 404 page, which break if the +# 404 page isn't served from /404.html +/* /404.html 404