A WordPress plugin to quickly send a 404 for missing static files.
Author: | Brad Parbs (profile at wordpress.org) |
WordPress version required: | 5.2 |
WordPress version tested: | 5.8 |
Plugin version: | 1.1.0 |
Added to WordPress repository: | 28-05-2021 |
Last updated: | 20-08-2021
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 0 |
Rated by: | 0 |
Plugin URI: | |
Total downloads: | 3 208 |
Active installs: | 6 000+ |
Click to start download |
Quickly output a 404 for static files that aren’t found, rather than loading the normal 404 page.
Any static files ( images, text, pdfs, etc ) that don’t exist will 404 as soon as possible, rather than loading the entire WordPress application.
Details
By default, the list of extensions to check are the results of wp_get_ext_types
, but can be filtered with static_404_extensions
.
The output is a static page with the text 404 Not Found
, this text can be edited by filtering static_404_message
.
A 404 status code will be used, but can be filtered with static_404_response_code
.
Passing true to static_404_should_process_request
will short-circuit and skip processing the request. This filter gets passed the current request.
ChangeLog