Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Fast 404 Generator

No security coverage Under active development 202 sites

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.

Drupal 10–11 PHP >=8.0

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

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
May 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
1.0.5 Stable 10–11 PHP >=8.0 Jul 5, 2024
1.0.4 Stable 9–10 PHP >=8.0 Jun 7, 2023
1.0.3 Stable 9–10 PHP >=8.0 May 25, 2023