Method to check if file was accessed through mod_rewrite?

Does anyone know if there is a way to check if a php file was accessed through mod_rewrite?

Well, the $_SERVER[‘REQUEST_URI’] variable holds the requested url so, if the file is different to the one that is finally requested, then it must have been redirected.

Duh, I can’t believe I didn’t think of that. Thanks for the tip.