URL Rewrite Not Working? Use IIS7 Integrated Mode
Recently for our web site, we ran into a problem where our URL rewrite module wasn't working with non-.NET-handled files. As you may know, IIS7 supports using URL rewriting with all kinds of files without too much web.config editing.
The solution was simple: our host did not set our web site to Integrated Mode in IIS7. Once they did, all of our rules were working.
For more information about IIS7 settings, take a look at this post: