Skip to main content
Agency Program Hosting from 10% off. A dedicated account manager. Priority support. Built for growing agencies. Hosting from 10% off, a dedicated account manager and priority support for growing agencies. Speak to the team Join free
Static 404 icon

Static 404

v1.2.0

A WordPress plugin to quickly send a 404 for missing static files.

3K+ active installs Updated Nov 19, 2026 Tested to 7.1.5 Requires PHP 7.4
Try Demo Download
Pre-installed Ready in ~10s No card
Static 404

About Static 404

This feature allows you to quickly show a 404 error message for static files that are not found, instead of loading the entire WordPress application. You can customize the text of the 404 message and also choose to skip processing the request.

Changelog

1.2.0

  • Fixed the plugin not doing anything since 1.1.0.
  • Only front-end requests are handled. wp-login.php, wp-cron.php, admin-ajax.php, and other .php files are never blocked.
  • .html, .htm, .php, and .txt URLs are never blocked, so dynamic files like robots.txt keep working.
  • Responses now have a 404 status code. Previously they had a 500.
  • static_404_should_process_request is now passed false and the request URI.
  • Requires WordPress 6.0 and PHP 7.4, tested up to WordPress 7.1.

1.1.0

  • Added more filters

1.0.3

  • Initial release

Try other plugins