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

NETTUTS.com: Scanning Folders with PHP

Hasin Hayder: Running Symfony 2 Applications in OpenShift

Inviqa techPortal: Functionally Testing You Application Using Mink

PHPBuilder.com: Create a Dynamic Username Validator with PHP, MySQL and jQuery

PHPro.org: SPL AppendIterator


Community Events





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


introduction interview voicesoftheelephpant list version language community unittest api opinion symfony laravel install extension release conference podcast composer configure series

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