This project is not covered by Drupal’s security advisory policy.

Description

This module provides a way to generate a 404 html page based on the current site's theme and menu. The Fast 404 module provides a great way to expedite 404 page responses as well as avoid the terrible issue with the cache table filling up with duplicate response data. But the Fast 404 module expects a single static HTML file to be provided. Upon clearing caches, this module will server up the first 404 response from standard Drupal core, whether that be a node page, or some other response. It will then take that response and create the HTML page. This will allow the main menu, header, footer, etc to all match the rest of the site. This is very helpful for multisite installations when each site has some different theme/menu/response text/etc. It also avoids the need to update the HTML file via git or some manual process.

Installation

Install the Fast 404 module as describe in their documentation.
Install and enable this module using normal procedures.
Make the below adjustments to the Fast 404 settings file.

$site_404 = DRUPAL_ROOT . '/' . $site_path . '/files/404.html';
$settings['fast404_HTML_error_page'] = file_exists($site_404) ? $site_404 : FALSE;
$settings['fast404_path_check'] = file_exists($site_404);

Clear the site caches.

Supporting organizations: 

Project information

Releases