title: How to set up an IIS Rewrite rule for everything except the /api route
body: <p>I'm setting up a webapi application with an angular front-end. I want to enable html5mode, so the web server needs to have a re-write rule that sends all requests back to the index page.</p>
  
  <p>The problem is the actions in the /api route are matching this rule of course, so none of my REST calls will pass through the rewrite rule.</p>
  
  <p>I'm sure I'm not alone with this problem. Can anyone share the  section of the web.config so that my REST service works and html5mode isn't broken?</p>