The generic bootstrap template comes with a 404 page created for you. In order for this 404 page to work, you must add a 404 error command to the configuration file (.htaccess) on the root.
For sites not using the generic bootstrap template, this is still easily accomplished by using an .htaccess content type. For more information on how to build an .htaccess file, see Creating an .htaccess file.
You'll also need a 404 page. Generally this would be a hidden page (hide in navigation).
To add the 404 command to the .htaccess file on the site root in the generic template you must add the GBoot htaccess content type on the root page:
Navigate to the root branch of the site and Add Content
The content type to add is GBoot htaccess
Add the following: ErrorDocument 404 /404.html
Sample 404 Page Content:
Page Not Found
Uh oh! The page you're looking for is nowhere to be found.
First, double check the URL. If you continue to reach this page, please contact us so we can correct our mistake.
Now, let’s help you find your way. To help locate your document you might try:
- VCU A to Z index, an alphabetical list of VCU websites
- Or simply use the search field at the top of the page