Detecting 404 Error Pages Automatically in WordPress
I thought it would be nice to share with you here if you are looking for the same solution.
My initial intention was to find out which old links in Joomla that were broken and redirect them to new WordPress links.
I thought I would stop using this plugin once the migration was completed. Until now, I am still using it - just for the purpose of detecting error pages on my site so that I can fix them whenever possible.
The best part of it is it is done automatically and an email is sent to me if an error is detected.
Here is the WordPress plugin that helps me: Useful 404's
Follow the instructions on the page to install the plugin.
Once you install and activate the plugin, you have to put this piece of code (<?php useful404s(); ?>) in your theme's 404 page by going to WordPress Dashboard: Appearance > Editor > 404 Template. Put the code right after the title or heading.
Next, in the plugin's settings page, you can activate or deactivate email notifications, and customize the email messages that you are going to receive.
You are set to go.
Whenever an error is detected, an email will be sent to you. Then it is your job to fix anything that is causing the error.
Next step... optional...
If you need to do a redirect 301 for broken links (like in my case), you can use Simple Redirect 301. It is a no-frills plugin but it gets the job done.
2 nuts walked into a bar, 1 was assaulted! :p