With a server running Apache and PHP via mod_fcgid, I'd like to log all requests handled by PHP into a separate file so that I can get a better idea of which requests are going through PHP versus being handled directly through the filesystem.
This is a site with some pretty complex rewrite rules in .htaccess (Wordpress with W3 Total Cache), which translates cached PHP requests into static file requests via mod_rewrite, so that cached requests don't even touch the PHP subsystem.
I want to make sure, therefore, that any log customization I do don't get thrown off by the mod_rewrite magic. Just because the request URI ends in .php, for example, doesn't mean that the request will ultimately end up being handled by PHP. I need to key based on whatever happens AFTER all the rewrite rules are applied.