shorter url with php
<p>I've seen it before and I have no clue how to do it or what to look for on google to find it.
Basically I'd like to know how to get these shortened urls to work, what i mean is for example</p>

<p>this: <a href="http://website.com/index.php?id=666" rel="nofollow">http://website.com/index.php?id=666</a>
turned into this: <a href="http://website.com/666" rel="nofollow">http://website.com/666</a></p>

<p>Is there some way to do this through php or do people actually go around making maps for each id?</p>

<p>thanks</p>
