Skip to content

Fast 404

Ben Gillbanks edited this page Sep 2, 2019 · 5 revisions

Disable 404's for static files.

This means that if an image (or other static file) is included in a page, and it doesn't exist, the entire 404 page will not be loaded.

The list of files currently blocked includes:

	$bad_file_types = array(
		'css',
		'txt',
		'jpg',
		'gif',
		'rar',
		'zip',
		'png',
		'bmp',
		'tar',
		'doc',
		'xml',
		'js',
		'docx',
		'xls',
		'xlsx',
		'svg',
		'webp',
	);

Clone this wiki locally