[thelist] [PHP, apache] redirect with logic

Simon Perry thelist at si-designs.co.uk
Fri May 21 05:06:25 CDT 2004


Geoff Sheridan wrote:

> Hello
>
> I'd like people to type in:
>
> http://mysite/foo/
>
> The folder 'foo' does not exist.
> Instead, a script would look up user 'foo' in a MySQL database, find 
> the userID was '123' and redirect to
>
> http://mysite/script.php?$id=123
>
Geoff,

Sitepoint.com have a good article[0] explaining how to do this.

Simon


[0] http://www.sitepoint.com/article/910


More information about the thelist mailing list