Login   Register  
PHP Classes
elePHPant
Icontem

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 del.icio.us Bookmark in del.icio.us
  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: 401 All time: 5,921 This week: 1,311Up
Version License PHP version Categories  
status-404-find-best 1.0.0GNU General Public Lice...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: 625 Up4 in Hong Kong Hong Kong Up
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files  
File Role Description
Plain text file class.status-404-f...best-match-page.php 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:401All time:5,921
 This week:0This week:1,311Up
 User Comments (1)  
 
good
1 year ago (Rahul Shambharkar)
80%StarStarStarStarStar