[thelist] [PHP, apache] redirect with logic

clayton clayton at geni-us.com
Fri May 21 09:04:39 CDT 2004


This is an article that can get someone started with mod_rewrite.. which 
has to be enabled by apache.
http://www.sitepoint.com/article/910/
and here is the Apache documentation
apache 1.3 http://httpd.apache.org/docs/mod/mod_rewrite.html
apache 2.0 http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html

Simon Perry wrote:

> 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