Using non asp.net file extensions with asp.net
As a developer it’s pretty interesting the type of things you run into. Well, couple weeks ago at work, I ran into a situation where I had to reverse engineer the webservice from php, however, still had to maintain the .php extension on the endpoint. In asp.net this is pretty easy to handle using handlers and build providers. Here’s how you can configure your asp.net so that it builds your .php file as if it were .asmx/.aspx.
1. First of all, you’ll need to configure your IIS to handle requests to .php (.cfm/.jsp etc…) with aspnet_isapi. Browse to your virtual directory ->properties->Configuration->Add extension mapping. Configure it as show in the picture.
Read More Here