News 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

Jani Hartikainen's Blog: Making a PDF generator class using Zend_Pdf

Maarten Balliauw's Blog: Saving a PHPExcel spreadsheet to Google Documents

Paul Jones' Blog: Sending Mail with Solar

DevShed: Customizing WordPress Search Results to Sort by Title

Vid Luther's Blog: Using your Mac as a local web development environment.


Community Events





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


unittest introduction framework podcast list series refactor release language interview community configure opinion code symfony2 testing threedevsandamaybe install laravel developer

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