Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create How to make a custom 404 page #177

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions docs/university/how-tos/How to make a custom 404 page
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
When you visit a website that doesn’t exist or couldn't be found on the server because the webpage was moved or deleted, the broken link redirects to a 404 error page where a message indicating this error is shown.

The default 404 page mentions:
# 404 Not Found

If you want to create a customized page for this you will need to create a new page and change two things:

1. Change Status Code from `200` to `404`.
2. Set the Dynamic Path to `/*` to select each possible outcome.
![[Pasted image 20240806092758.png]]
After that you can design the page however you like.

If you do not want to show a 404 page error, but always refer to the homepage, you can set the redirect to `/`.