View Single Post
Old 07-07-2004, 02:19 AM   #2 (permalink)
LazyJim
Moderator
 
LazyJim's Avatar
 
Join Date: 10-13-03
Location: UK
Posts: 2,819
iTrader: 0 / 0%
Latest Blog:
None

LazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to all
Send a message via MSN to LazyJim
mod_rewrite should help, redirect all requests to your domain to a signle php script that reads the URL requested and does whatever you want with it.

An alternative if you're too lazy to figure out mod_rewrite like I was, set the ErrorDocument to your php script so any request resulting in file not found will redirect to the same php script that reads the url. This is a pretty sneaky solution but the main drawback is the server will try to find the requested document each time, a step that is bypassed if you use mod_rewrite instead.

I recommend downloading Apache and PHP and installing on your own machine to test them, it's a great time saver and usefull experience.
__________________

-LJ-

My advice is to look at each case individually, with an informed mind and an appropriately balanced and objective viewpoint.

Web Design and Development, Ipswich, UK.
My deviantArt
LazyJim is offline   Reply With Quote