1
0
mirror of synced 2025-12-22 11:26:57 -05:00
Files
docs/content/pages/getting-started-with-github-pages/creating-a-custom-404-page-for-your-github-pages-site.md
Emily Gould fbc83618dd Make GitHub Pages content a top-level doc set (#18480)
* Add new product to products.yml

* Move directory to new location

* Update new index page

* Remove old category from github product index

* Add getting started category

* Add Jekyll category

* Create custom domain category

* Update links to custom domain articles

* Add redirects and update links for getting started articles

* Add redirects and update links for jekyll articles

* Fix link

* Fix link

* Fix link

* Fix link
2021-04-01 20:09:50 +00:00

1.3 KiB

title, intro, redirect_from, product, versions, topics
title intro redirect_from product versions topics
Creating a custom 404 page for your GitHub Pages site You can display a custom 404 error page when people try to access nonexistent pages on your site.
/articles/custom-404-pages/
/articles/creating-a-custom-404-page-for-your-github-pages-site
/github/working-with-github-pages/creating-a-custom-404-page-for-your-github-pages-site
{% data reusables.gated-features.pages %}
free-pro-team enterprise-server github-ae
* * *
pages

{% data reusables.pages.navigate-site-repo %} {% data reusables.pages.navigate-publishing-source %} {% data reusables.files.add-file %} 3. In the file name field, type 404.html or 404.md. File name field 4. If you named your file 404.md, add the following YAML front matter to the beginning of the file:

---
permalink: /404.html
---
  1. Below the YAML front matter, if present, add the content you want to display on your 404 page. {% data reusables.files.write_commit_message %} {% data reusables.files.choose-commit-email %} {% data reusables.files.choose_commit_branch %} {% data reusables.files.propose_new_file %}

Further reading