|Last Updated|| ||Ratings|| ||Unique User Downloads|| ||Download Rankings|
|2017-05-02 (2 years ago) || 51%||Total: 496 This week: 1||All time: 5,732 This week: 332|
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.
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.
Not Found Alternative
(formerly 'Status 404 Find Best Match Page')
When requested page URI is not found in the list of available pages,
closest matching page URI will be found and a redirect header will
This package will please all those concerned with search engine optimisation (SEO), and
in situations where URIs often change; it eliminates the need for URL rewrites.
# For testing purposes, we set these; otherwise to be omitted.
$_SERVER['REQUEST_URI'] = '/contatcus?lang=en-us';
$_SERVER['SERVER_PROTOCOL'] = 'HTTP/1.1';
$_SERVER['HTTP_SCHEME'] = 'https';
$_SERVER['HTTP_HOST'] = 'www.blah.sample';
# ---- End of testing variables ----
$notfoundObj = new NotFoundAlternative;
$notfoundObj->AvailableURI = array(
# The script serves Status 301 permanent redirect header
# and Location header 'https://www.blah.sample/contact-us?lang=en-us'
# and then exits.
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.
Find the latest version on GitHub