Skip to content

Commit

Permalink
chore(docs): Fix grammar in add-404-page (#29079)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanchu authored Jan 19, 2021
1 parent d4a8ad2 commit c865d19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/how-to/adding-common-features/add-404-page.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Adding a 404 Page
---

To create a 404 page create a page whose path matches the regex `^\/?404\/?$` (`/404/`, `/404`, `404/` or `404`). Most often you'll want to create a React component page at `src/pages/404.js`.
To create a 404 page create a page whose path matches the regex `^\/?404\/?$` (`/404/`, `/404`, `404/` or `404`), most often you'll want to create a React component page at `src/pages/404.js`.

Gatsby ensures that your 404 page is built as `404.html` as many static hosting platforms default to using this as your 404 error page. If you're hosting your site another way you'll need to set up a custom rule to serve this file for 404 errors.

Expand Down

0 comments on commit c865d19

Please sign in to comment.