diff --git a/core/modules/system/config/system.fast_404.yml b/core/modules/system/config/system.fast_404.yml new file mode 100644 index 0000000..9b06a4f --- /dev/null +++ b/core/modules/system/config/system.fast_404.yml @@ -0,0 +1,3 @@ +paths: '/\.(?:txt|png|gif|jpe?g|css|js|ico|swf|flv|cgi|bat|pl|dll|exe|asp)$/i' +exclude_paths: '/\/(?:styles)\//' +html: '404 Not Found

Not Found

The requested URL "@path" was not found on this server.

' diff --git a/core/modules/system/system.install b/core/modules/system/system.install index a8819c1..7deae10 100644 --- a/core/modules/system/system.install +++ b/core/modules/system/system.install @@ -2188,6 +2188,19 @@ function system_update_8030() { } /** + * Moves system fast 404 settings from variable to config. + * + * @ingroup config_upgrade + */ +function system_update_8031() { + update_variables_to_config('system.fast_404', array( + '404_fast_html' => 'html', + '404_fast_paths' => 'paths', + '404_fast_paths_exclude' => 'paths_exclude', + )); +} + +/** * @} End of "defgroup updates-7.x-to-8.x". * The next series of updates should start at 9000. */