Are you sure you want to delete this access key?
title | intro | redirect_from | product | versions |
---|---|---|---|---|
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] | {% data reusables.gated-features.pages %} | [{free-pro-team *} {enterprise-server *} {github-ae *}] |
{% 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
.
4. If you named your file
404.md
, add the following YAML front matter to the beginning of the file:
---
permalink: /404.html
---
Press p or to see the previous file or, n or to see the next file
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?