WordPress.org

Plugin Directory

Resource Not Found Placeholder | Prevent redirections due to not foud resources

Resource Not Found Placeholder | Prevent redirections due to not foud resources

Description

No more 404 errors and redirections due to missing resources. When a resource is not found, the plugin will replace it with an empty resource.

No settings are needed for this plugin. Just activate it, and it will replace all the missing resources with empty resources, preventing 404 errors and expensive redirections.

Many themes call https://yoursite.com/favicon.ico instead of the final favicon URL.
Believe it or not, when a resource like a favicon is not found, WordPress loads all the plugins, the theme, and the core, and then it does a redirection to the final favicon image.
This means that before the redirection the PHP code of the entire WordPress ecosystem runs, and all the database queries take place.
This is really expensive in terms of performance. You may have already seen some WordPress websites where the favicon needs a long time before being displayed or long waiting times for a not found resource. Well, this plugin prevents this kind of issue.

In the case of the favicon, if it’s not found in the main directory, the plugin will not replace it with an empty icon, but it will send to the browser the final favicon image without any redirections.
In all other cases, it will replace the missing resource with an empty resource.

It works for any kind of resource, but the resources with extensions .txt and .xml to avoid issues with the files which are generated on the fly like robots.txt and the sitemaps.

Reviews

10. Februar 2023. 5 replies
Hello very good idea but as soon as I try to activate the plugin I get Il plugin ha un’intestazione non valida. So I cannot use and test it. Can you fix it?
10. Februar 2023.
I’m the author but also a user. I love my own plugin. It does exactly what it is written in the description.
Read all 2 reviews

Contributors & Developers

“Resource Not Found Placeholder | Prevent redirections due to not foud resources” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

0.0.4

  • Fix: sitemap not showing

0.0.3

  • Fix: warning in the backend about the mu-plugin version

0.0.2

  • Fix: plugin can’t be activated on some servers

0.0.1

*Initial release