I\'m using the URL rewrite middleware in ASP.NET Core, and I\'m trying to make the rewrite work only if the request does not point to an existing file or directory.