I have these rules set in my Web.config:
Based on the following solution here:
How to exclude a directory with IIS URL rewriting?
You could do something like this: