Transparent PHP script execution using mod_rewrite
Posted
by
tori3852
on Pro Webmasters
See other posts from Pro Webmasters
or by tori3852
Published on 2011-10-02T13:28:28Z
Indexed on
2012/06/16
9:23 UTC
Read the original article
Hit count: 198
I am looking for a solution for this a problem: I need that every HTTP request (method is irrelevant) in Apache http server would be served only after execution of specific PHP script. This is needed because I need to gather some information about requests, etc.
As far as I understand - this could be achieved using mod_rewrite
module. So far I have done this (in .htaccess
file):
RewriteEngine on
RewriteRule ^(.*)$ script.php [C]
script.php
is executed, but I need that after this original request would be executed.
Thanks - any help is appreciated.
© Pro Webmasters or respective owner