I have a PHP script and I'd like to know if it's been executed as a result of mod_rewrite redirecting the request to it.
Is there anything I can easily inspect simply to get a yes or no answer? Is there any way to get the rewritten path rather than the one that was originally requested?