PHP Classes

Status 404 PHP Find Best Match Page: Find best match URL when accessing an invalid page

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2013-08-25 (1 year ago) RSS 2.0 feedNot enough user ratingsTotal: 410 This week: 2All time: 5,900 This week: 881Up
Version License PHP version Categories  
status-404-find-best 1.0.0GNU General Publi...5.0HTTP, PHP 5, Text processing, Artific...
Description Author  

This class can find best match URL when accessing an invalid page.

It takes the list of URIs of valid pages and finds the page that matches better the URI of the current request when it is not valid.

The class redirects the browser to the best match page URL.

Innovation Award  
PHP Programming Innovation award nominee
September 2013
Number 5

Prize: One copy of the Zend Studio
Some times users access inexistent pages because they mistyped the URL. In that case it would be better to try to fix the URL for the user instead of just say it is wrong.

This class can attempt to fix incorrect URLs using a list of URLs that are known to be correct.

Manuel Lemos
Picture of Peter Kahl
Name: Peter Kahl <contact>
Classes: 5 packages by
Country: Hong Kong Hong Kong
Age: ???
All time rank: 11805 in Hong Kong Hong Kong
Week rank: 469 Up2 in Hong Kong Hong Kong Up
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files  
File Role Description
Plain text file Class The class
Plain text file index.php Example Example of usage
Plain text file README Doc. README
Plain text file CHANGELOG Data Change log
Plain text file LICENSE Lic. License

 Version Control Unique User Downloads Download Rankings  
 0%Total:410All time:5,900
 This week:2This week:881Up
 User Comments (1)  
1 year ago (Rahul Shambharkar)