RE: [PHP] intercepting URLs in a "control-system"
| From: | Chris W. Parker | Date: | Thu, 16 Oct 2003 21:34:35 +0000 |
| Subject: | RE: [PHP] intercepting URLs in a "control-system" | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-166359@lists.php.net to get a copy of this message | ||
Alan Lord <mailto:lord_alan@hotmail.com>
on Thursday, October 16, 2003 1:40 PM said:
> Having read quite a bit on-line, I am interested in trying to "trap"
> URLs sent to my site so I can process the request and respond without
> neccessarily having a "real" page to serve. If this makes any sense,
> how do I do it?
Yes. Like another poster suggested you'll want to use mod_rewrite. You
can turn urls such as www.abc.com/cars/volvo/X70.html into
www.abc.com/cars.php?make=volvo&model=X70
> Because I expect that apache (in my case) would not
> like a URL that contains extra directories/files and would reject it.
Yes, it's called a 404.
HTH,
Chris.
--
Don't like reformatting your Outlook replies? Now there's relief!
http://home.in.tum.de/~jain/software/outlook-quotefix/