This module creates a 404 error page that matches your site's theme and menu. It generates the HTML for the 404 page from the first 404 response it receives, ensuring consistency across your site and avoiding cache table bloat. This is particularly useful for multisite setups.
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.
Ask your assistant about Fast 404 Generator
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
- Fast 404 fast404
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.