Enrique

> On Fri, 7 Sep 2001, Enrique Vadillo wrote:

> > I am thinking now that i'd like to make it possible that for
> > ANY http request received by my Apache i'd like to have a php
> > script executed first

I do this all the time - it offers all kinds of advantages.

This link explains why and how to do this

http://www.phpbuilder.com/columns/tim20000526.php3

 My own appoach is to use Apache mod_rewrite to direct all requests to my
"main" script, but leave one directory free for conventional .html or .php
files. You need something like this in your Apache configuration -

RewriteEngine on
RewriteRule !^/my_conventional_directory(.*) /my_main_file.php [nocase]

This means: "if request is not for my conventional directory, run my main
script"

Cheers

Geoff Caplan


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to