- Patch #1436814 by gary4gar, webchick: switch to HTML5 for Fast 404 'Not found' pages.

8.0.x
Dries 2012-05-26 19:33:02 -04:00
parent 0ca44db14c
commit a2ee8c1e40
1 changed files with 1 additions and 1 deletions

View File

@ -498,7 +498,7 @@ ini_set('session.cookie_lifetime', 2000000);
*/
$conf['404_fast_paths_exclude'] = '/\/(?:styles)\//';
$conf['404_fast_paths'] = '/\.(?:txt|png|gif|jpe?g|css|js|ico|swf|flv|cgi|bat|pl|dll|exe|asp)$/i';
$conf['404_fast_html'] = '<html xmlns="http://www.w3.org/1999/xhtml"><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL "@path" was not found on this server.</p></body></html>';
$conf['404_fast_html'] = '<!DOCTYPE html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL "@path" was not found on this server.</p></body></html>';
/**
* By default, fast 404s are returned as part of the normal page request