Added support for .php and extensionless urls