Re: How does work shorten url services?
| From: | Ramil Sagum | Date: | Sat, 18 Sep 2004 11:29:05 +0000 |
| Subject: | Re: How does work shorten url services? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-197092@lists.php.net to get a copy of this message | ||
On Sat, 18 Sep 2004 10:49:34 +0200 (CEST), Henri Marc
<mesmlamoi@yahoo.fr> wrote:
> Hello,
>
> The principle is that you enter your long url in their
> form and it gives you a shorten url like
> tinyurl.com/h4599
>
> I was wondering how it works. I think it must use PHP.
>
It would use a feature of an HTTP server such as Apache -- URL rewriting
Basically, you can make rules such that urls like
http://tinyurl.com/h4599
become
http://tinyurl.com/index.php?id=h4599
you would then handle it from there.
But this is off topic :)
----
ramil
http://ramil.sagum.net