Re: PHP implementation of something like Apache's mod_speling?
| From: | Julio Nobrega | Date: | Thu, 01 Aug 2002 02:27:16 +0000 |
| Subject: | Re: PHP implementation of something like Apache's mod_speling? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-110609@lists.php.net to get a copy of this message | ||
How about a file wilh all the directories and you compare its contents
using similar_text() or soundex/metaphone() with the url/directory that
failed?
Shouldn't be too hard to implement.
--
Julio Nobrega
Pode acessar:
http://www.inerciasensorial.com.br
"Tim Luoma" <luomat@peak.org> escreveu na mensagem
news:3D489898.1010204@peak.org...
>
> As I assume most of you know, mod_speling (sic) is a feature of the
> Apache httpd that will suggest possible corrections to URLs.
>
> i.e. if you look for /sidebar/ on my site you'll get a 404 because the
> actual URL is /sidebars/
>
> The problem is that some sites don't enable mod_speling and some don't
> use Apache ;-)
>
> Before I reinvent the wheel, I thought I'd ask if anyone had written
> some PHP to cover this... I didn't find anything useful in Google or
> HotScripts
>
> TjL
>
>