From b3f34bfd0e6ef4339e59adfc6083019cfc1eb98b Mon Sep 17 00:00:00 2001 From: Roman Walters Date: Mon, 20 Sep 2021 22:56:25 +0200 Subject: [PATCH] Update astro-pages.md: Create custom 404 error page (#1392) * Update astro-pages.md * Update astro-pages.md Explained the speciallity of 404.astro * Update astro-pages.md --- docs/src/pages/core-concepts/astro-pages.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/src/pages/core-concepts/astro-pages.md b/docs/src/pages/core-concepts/astro-pages.md index de61239c81..1657be2905 100644 --- a/docs/src/pages/core-concepts/astro-pages.md +++ b/docs/src/pages/core-concepts/astro-pages.md @@ -58,3 +58,8 @@ console.log(data);
{JSON.stringify(data)}
``` + +## Custom 404 Error Page + +For a custom 404 error page create a `404.astro` file in `/src/pages`. That builds to a `404.html` page. Most [deploy services](/guides/deploy) will find and use it. +This is special and different to the default behavior building `page.astro` (or `page/index.astro`) to `page/index.html`.