On Wed, 2003-01-15 at 08:24, Chris Hayes wrote:
> At 15:39 15-1-03, you wrote:
> >Hello
> >
> >Is it possible to send all incoming requests to the same script within
> >PHP?
> >In other words: How can I get http://mysite/script.php to point to the
> >same script as http://mysite/anotherscript.php ? And is it possible to do
> >send a request like
> >http://mysite/someextrapathinfo to the same php script?
> >The background behind it is to create a controler that handles all
> >incoming requests and dispatches them to different worker scripts as
> >nessecary.
> 
> I think to achieve that you need to have a certain amount of rights, so you 
> may have problems to get modules in Apache or .htaccess (see below) working 
> when your ISP does not want to help you.
> 
> I've heard that Apache's mod_rewrite module can be very powerful in doing 
> things like you propose.

Yes. I use mod_rewrite to do this. If you have access to httpd.conf,
that is the best place to put rules. You can also put rules in .htaccess
if that is your only option, however, you take a performance hit for
doing it that way.

http://httpd.apache.org/docs/mod/mod_rewrite.html#InternalAPI

- Brad


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to