diff --git a/docs/content/404/_index.md b/docs/content/404/_index.md deleted file mode 100644 index 7ade402287..0000000000 --- a/docs/content/404/_index.md +++ /dev/null @@ -1,3 +0,0 @@ ---- -title: Page Not Found ---- diff --git a/docs/content/en/404/_index.md b/docs/content/en/404/_index.md new file mode 100644 index 0000000000..8dfc51f5aa --- /dev/null +++ b/docs/content/en/404/_index.md @@ -0,0 +1,14 @@ +--- +title: Page Not Found +weight: 100 +menu: + main: + weight: 20 +type: docs +cascade: + type: docs +--- + +The page can't be found. + +Please try the search on the top to look for it or go back to [the homepage](/). diff --git a/netlify.toml b/netlify.toml index 6cc00f9b77..59fbfab156 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,3 +1,9 @@ +# https://docs.netlify.com/routing/redirects/redirect-options/#custom-404-page-handling +[[redirects]] + from = "/*" + to = "/404/" + status = 404 + [build] base = "docs/" publish = "public/"