Subscribe to
NSLog(); Header Image

Revised 404 Search for WordPress

I've written about my methods for "404 Searching" before, but due to the speed (or lack thereof) with which MovableType handled searches, I disabled the feature entirely.

WordPress is much lighter on it feet, or faster afoot, in many ways. I've been able to re-institute the 404 Search under WordPress without noticing much in the way of spiked server loads.

Almost every theme comes with a "404.php" file, which usually just has a "sorry, not found" message. I've modified mine and it is available here. It's grown a bit since its initial version, but most of the additions simply help to abort the script if the search is caused by a virus looking for IIS .dll files or something.