how do you route?
| From: | Ed Lazor | Date: | Fri, 03 May 2002 05:04:21 +0000 |
| Subject: | how do you route? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-95826@lists.php.net to get a copy of this message | ||
Is there a way to route every web page request through a specific script using PHP / Apache?
I'm familiar with using ForceType to route all requests through /news/ to a script called news. Ie.
<Location /news>
ForceType application/x-httpd-php
</Location>
and creating a script called news with no file extension.
Is it possible to do this at the domain level rather than requiring that a sub-folder be involved? As example, I'd go to http://www.example.com and my request would get processed by a script. I'd go to http://www.example.com/pizza/ and the request would get processed by the same script.
Thanks,
-Ed