Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
in boost_init run
boost_fast404();
instead of
drupal_not_found();
return;
/**
* Send out a fast 404 and exit.
*/
function boost_fast404() {
global $base_path;
if (!headers_sent()) {
header($_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found');
}
print '<html>';
print '<head><title>' . t('404 Not Found') . '</title></head>';
print '<body><h1>' . t('Not Found') . '</h1>';
print '<p>' . t('The requested URL was not found on this server.') . '</p>';
print '<p><a href="' . $base_path . '">' . t('Home') . '</a></p>';
print '</body></html>';
exit();
}
Comment | File | Size | Author |
---|---|---|---|
#1 | boost-1125158-1.patch | 8.69 KB | mikeytown2 |
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedfast 404 and some merges from our svn repo.