Re: quick question
| From: | Patrick Cloches | Date: | Thu, 17 Aug 2000 16:06:40 +0000 |
| Subject: | Re: quick question | ||
| References: | 1 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-1697@lists.php.net to get a copy of this message | ||
I'm not the webmaster, but I assume it is done similarly on php.net. I just
set the 404 URL to my script. Rather than using a SQL search, I use
approximite string matching (I think 'Practical Algorithms for Programmers'
has an example) and show a list of possible URLs in case it was misspelled.
If there was one good match, redirect them there automaticly, otherwise show
the possible URLs as well as an SQL query.
Just my idea. This wouldn't be feasable after a certain traffic limit, then
again I'd use C for those anyway.
Hope this helps,
-Patrick
----- Original Message -----
From: "Daniel C. L'Hommedieu" <dcl@linuxcrypt.com>
To: <webmaster@php.net>
Sent: Thursday, August 17, 2000 10:06 AM
Subject: quick question
> Greetings.
>
> I like how you have your site configured to do a search if someone gives
> a bad url - such as
> http://www.php.net/setcookie
>
> My question is: how did you set that up? Netcraft tells me you're using
> Apache 1.3.12. I'm using Apache too, but I can't figure out how to set
> the system up like you did with respect to bad URLs.
>
> All I see in Apache's documentation is the ability to redirect. That
> doesn't appear to be what you do - you run a script "at" the bad URL,
> you don't redirect to an error/search script.
>
> Can you clue me in?
>
> Thanks!
>
> Daniel
> --
> Daniel C. L'Hommedieu
> dcl@linuxcrypt.com
>