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

Web Developer Juice: PHP Magic Functions: Best Part of Object Oriented PHP - Part 1

Ian Barber's Blog: PageRank In PHP

DevShed: Cache Data in RAM with PHP

Zend Developer Zone: AJAX Chat Tutorial Part 2

9Lessons Blog: Stored Procedure Lesson


Community Events





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


introduction conference series voicesoftheelephpant language composer library framework opinion community tool release artisanfiles security symfony interview podcast version laravel list

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