Remove removing .php and general cleanup of useless rules