You can display a custom 404 error page when people try to access nonexistent pages on your site.
- Navigate to your GitHub Enterprise Pages repository.
- Switch to the
master
branch for a User/Organization Pages site, or to thegh-pages
branch for a Project Pages site. - Create a new HTML file named
404.html
—or a new Markdown file named404.md
, withpermalink: /404.html
in its YAML front matter—at the root level of your Pages repository. - Add the content you want to display to lost souls and weary travelers.
- Commit your changes and, if you're working on a local clone of your repository, push them up to your GitHub Enterprise instance.