Page 1 of 1

Variable folders

Posted: Wed Feb 02, 2005 12:09 pm
by next2hea
There are a series of postcards a client wants to send out with a unique URL on it such as:

http://www.somesite.com/tomjones

There would be over 20,000 unique names. How can I capture those as variables to search in a database for their unique information?

Would they be variables? Or something else? I just need to capture that folder name without acually creating 20,000 folders.


THANKS!

Posted: Wed Feb 02, 2005 8:11 pm
by feyd
using mod_rewrite to pass the request information to an existing script would probably work best, if you are running Apache and have mod_rewrite enabled or can be installed.

Without those, it'd be very difficult to process unless you created a custom 404 error handler page that (hopefully) your server sends the requested uri to.