Disabling .NET Core in a Sub-Directory

You can prevent .NET Core (when it's the root application) from intercepting requests in a sub-directory by removing its handler mapping in the sub-directory's web.config file:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.web> 
    <trust level="Full" /> 
  </system.web> 
<system.webServer>
  <handlers>
    <remove name="aspNetCore" />
  </handlers>
</system.webServer>
</configuration>
This is useful in scenarios where you want .NET Core to be the main (i.e. root) application but want to run to another application in a sub-directory (e.g. .NET Framework, PHP, etc.)