rewrite rules should apply to .php paths too

If a php web app path uses .php and expects those URLs to be rewritten it would not work.
This change applies the main rewrite rules to .php locations as well.

This fixes a problem when running concrete5.