News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

php|architect:
Bing Powered 404 for non-WordPress websites
June 17, 2010 @ 09:10:29

Following up on his Bing 404 plugin for WordPress article, Cal Evans has put together an example for those not using WordPress to accomplish the same thing.

I had several people tell me that while they liked the idea, they didn't want to install WordPress just so they can have intelligent 404 errors. Several other people pinged me and suggested a way that you could use the Bing Search API to handle 404's without WordPress. As a public service, I am going to try and bridge the gap between these two groups. Going on leads provided by friends, I have hammered out a solution that works with Apache and PHP.

The solution uses a custom 404 page (as set in Apache) that pulls in the "top ten" links from the current site as reported back by the Bing.com search engine. With the help of the API making a request and getting back an object to loop through is simple. This could easily be adapted to accept terms based on the content page that they were trying to find or some keywords based on your site's content.

0 comments voice your opinion now!
bing wordpress search 404 error apache tutorial


blog comments powered by Disqus

Similar Posts

Padraic Brady's Blog: Writing A Simple Twitter Client Using the PHP Zend Framework's OAuth Library

DevShed: Building an Error Logger with the Chain of Responsibility Pattern in PHP 5

NetTuts.com: Basecamp Style Subdomains With CodeIgniter

Zend Developer Zone: Creating Code Coverage Statistics with xdebug

NetTuts.com: Creating a Photo Tag Wall With Twilio Picture Messaging & PHP


Community Events











Don't see your event here?
Let us know!


symfony2 code overview unittest package example security release install language facebook composer application framework introduction opinion hack podcast component hhvm

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework