[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:
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
----------------------------

You got the SitePoint reference already, and here's another article on using
PHP and Apache's mod_rewrite:
http://www.alistapart.com/articles/succeed/

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
www.NeptuneWebworks.com
voice: 541-302-1438
fax: 208-730-6504




More information about the thelist mailing list