This is another plugin that I used on my old site and now I’m modifying it to make it WP friendly. It’s basically the same 404 error page that Dunstan Orchard uses on his 1976design.com/blog site. Install the file to your plugins directory, activate, configure, and enjoy!


WordPress Versions:

  • 2.1
  • 2.0
  • 1.5
  • In theory, it should work with 1.2.*, but it has not been tested.


  1. Downloaded the latest version of the plugin (below)
  2. Rename the downloaded file to afdn_error_page.php
  3. Upload to your plugins directory (typically /wp-content/plugins/)
  4. Activate the plugin
  5. Configure the plugin under Options > Error Page in the administration panel
  6. Find the 404.php file for the theme you are using, usually located at /wp-content/themes/*YOUR_THEME_NAME*/404.php
  7. Delete everything in the 404.php file and replace it with:
          <?php afdn_error_page(); ?>
  8. Enjoy!


Latest version:




Got all the Akismetfeatures working. While the plugin will work without an API Key, you really should get one. All comments that are tagged as spam by Akismet are placed into an array in the WPDB. You can manage it from the regular Error Page management window. I used the Akismet Comment Spam plugin as a basis for a lot of the UI, so things should be pretty familiar.

4-22-2006 – http://dev.wp-plugins.org/browser/dunstan-error-page/tags/1.2/

Layed the foundation for Akismet spam testing. If you have a valid API key, detailed error reports will be checked against for spam. YOU DO NOT NEED AN API KEY FOR THE PLUGIN TO WORK. My name was also hardcoded in one last place, so I took care of that. There was an issue with checking the referer that would return a false negative if the actual URL wasn’t preceded with WWW, so that’s fixed. I also coded some things in a rather crappy way, so I cleaned that up. Most of the plugin is now commented, so that should help anyone try to figure out what the heck I was thinking.

4-22-2006 – http://dev.wp-plugins.org/browser/dunstan-error-page/tags/1.1/

Thanks to Ozh for the heads up on some hardcoded text that should have been dynamic and for suggesting securing the email form.

12-29-2005 – http://dev.wp-plugins.org/browser/dunstan-error-page/tags/0.82/

NOTICE: Copyright format changed from MIT to GNU GPL as of version 0.8

Embeded error page code into plugin file….if that makes sense.

12-28-2005 – http://dev.wp-plugins.org/browser/dunstan-error-page/tags/0.8/

Added functionality for redirected error pages.

8-25-2005 – http://dev.wp-plugins.org/browser/dunstan-error-page/tags/0.7/

Inital public release

6-24-2005 – http://dev.wp-plugins.org/browser/dunstan-error-page/tags/0.5/