Adds rewrite for .php extensions