Commit a2ee8c1e authored by Dries's avatar Dries

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

parent 0ca44db1
...@@ -498,7 +498,7 @@ ...@@ -498,7 +498,7 @@
*/ */
$conf['404_fast_paths_exclude'] = '/\/(?:styles)\//'; $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_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 * By default, fast 404s are returned as part of the normal page request
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment