how to remove the file extension from the url in php