What is a 404 Error?

When a URL on a website is requested, but the URL does not exist, the website returns a 404 error to indicate that a page cannot be found.

Some ways that 404 errors are triggered are:

  • A user clicked on a link from another website that leads to a page on your site that does not exist
  • The URL used to exist on your site but has since been deleted
  • A user mistypes the URL of a page on your site
  • A bot / spider that crawls your website arrived at the URL in error (Googlebot, Yahoo bot, Bing bot, etc)

For more information about the 404 error code, please see this page: Google - Not found errors (404)

What is a 404 Error Page?

When any of the events listed above happen, the server will respond with a 404 error, and will also respond with a page of content to display.  This page of content is called a 404 error page.

How Does a Brilliant Directories Website Handle 404 Error Pages?

In the past, all Brilliant Directories websites would use the homepage as the 404 error page.  Using the homepage as the 404 error page is great for human visitors to your site, as the content the visitor was looking for at an erroneous URL can often be found from the homepage of a site.

However, the homepage is also typically one of the most resource-intensive pages of a website, and loading the homepage will usually consume more bandwidth than loading any other page of a site. Depending on the content that is displayed on the homepage, it can consume anywhere between 1 MB - 10 MB of bandwidth every time the homepage is loaded.

If a bot or spider (non-human user) attempts to load erroneous URLs on your website, they will always be served the homepage, which will consume a significant amount of bandwidth.

In order to minimize the amount of bandwidth used when a 404 error is triggered, we have created a default 404 error page that simply notifies the visitor that the page they requested does not exist, which is typical behavior for most websites around the web.  This new page also only consumes about 1 KB of bandwidth each time it is loaded, which is about 1,000 - 10,000 times less than the typical homepage.  This will save a significant amount of bandwidth from being consumed by 404 errors.

There is also a link on the default 404 page to the homepage for real visitors to click on so they can continue to look for the information they were originally requesting.  Here is an example of the new lightweight 404 page:

Can the 404 Error Page be Changed?

While the default 404 error page will work for most websites, we have also made ways to edit the default 404 page, set other existing pages to be the 404 error page, and to create completely custom 404 error pages if you choose.

How to Change Which Page Is Used as the 404 Error Page

If you would like to use an existing page of your site as the 404 error page, simply enter the permalink (URL) of the page into the "error_404" Advanced Setting.

For example, if you wanted your site to go back to the old method of setting the homepage (permalink /home) as the 404 error page of your site, you can enter "home" or "/home" into the "error_404" Advanced Setting.
  2. Enter the name of the variable, "error_404", into the search field (entering simply "404" would find the setting as well)
  3. Enter the permalink / URL of the page you wish to use here:

  4. Once this change is saved, the page entered here will be used as the 404 error page.

How to Create a Custom 404 Page

  1. Navigate to CONTENT >> ADD NEW PAGE
  2. Add a unique Permalink (EG: "my404"):

  3. Make sure it is set as "Single Web Page"
  4. Save the page
  5. Follow the steps in the "How to Change Which Page Is Used as the 404 Error Page" above to enter the permalink of your custom 404 error page to the "error_404" Advanced Setting.

How to Edit the Default 404 Page

Many website owners would rather simply edit the language of the existing default 404 page rather than create a new 404 error page or use another existing page of of their site.

To edit the default 404 page, please follow these steps:

  1. Navigate to TOOLBOX >> WIDGET MANAGER
  2. Type in the search field the widget name "Bootstrap Theme - Module - 404 Page Content"

  3. Click on "Customize" to make a custom copy of the Master Widget and add it to "My Widgets":

In this widget you can edit/add text, and style it differently. Remember to keep this page as light as possible to avoid any bandwidth overuse: