Antipixelfree of the drudgery of being useful

Safari Displaying Source Code < Home > MT Rebuild Mod


404 -> Search Page

Comments: 2


When you try to access an address on a site that doesn’t exist, you get a 404 error. What you should get is an attempt to find the page you’re after and, if that doesn’t work, a search page where you can enter a string of your own devising. Thanks to this ingenious PHP snippet from Erik Barzeski that’s exactly what you can offer wayward visitors to your site.

I know I’m a bit late to the party with this one — Erik posted this back in February but better late than never when it comes to improving 404s.

•••
Posted to “Computers” 2003.05.20 (Tue) • 23:50
TrackBack: http://www.antipixel.com/mt/mt-tb.cgi/239

Comments

Posted by Ian   2003.05.21, 00:18

There are a couple of issues with doing this which you might want to be aware of.

Posted by Erik J. Barzeski   2003.05.21, 07:16

Those "issues" as others have pointed out are not things that couldn't be done anyway - repeatedly querying mt-search.cgi and so on.

Post a comment:






Remember personal info?
(optional)




Comments can take a moment or two to be processed. Please be patient! You can use basic HTML in comments (a href, b, br, p, strong, em, ul, li, blockquote) but the tradeoff is that URLs are no longer automatically converted to links. If you want links active, you'll need to make it so. See the privacy notes for more information.




• • •

Search Options

Valid XHTML

Outgoing
Any pings sent are listed below. Select a ping for more info.

Incoming
Any TrackBack pings to this article appear below.


Antipixel

Antipixel.com
© 2003 Jeremy Hedley
All rights reserved and so forth.
Rights & Administrivia