Earlier my site was PHP based later i changed to ASP.NET Everything works great. I also created a PageNotFound page that appears when an invalid page was entered.
However, if someone navigates to the site with a PHP file which now shifted to ASP then an error is displayed and my PageNotFound page is NOT displayed.
I understand this is related to the fact that ASP.NET is not managing PHP files. Is there a simple way to change it so it does? This is on a shared hosting service so I can't change the OS settings. Ideally, there would be something I could add to my web.config file.