[thelist] [PHP, apache] redirect with logic

Maximillian Schwanekamp anaxamaxan at neptunewebworks.com
Fri May 21 13:06:01 CDT 2004

I'd like people to type in:
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

You got the SitePoint reference already, and here's another article on using
PHP and Apache's mod_rewrite:

If your logic starts getting complex, you might want to brush up on regex
syntax too (if you're not already a regex mage).

Maximillian Von Schwanekamp
Dynamic Websites and E-Commerce
voice: 541-302-1438
fax: 208-730-6504

More information about the thelist mailing list