title: IIS reverse proxy outbound rule doesn't work
body: <p>I have a web site under IIS 10.0 v1809. A specific link <a href="https://domain.name/report/" rel="nofollow noreferrer">https://domain.name/report/</a> should be proxied to the local service http://localhost:7577/dashboard/. So I need to change the word <code>dashboard</code> to <code>report</code> in the server answer. To do this I set up ReverseProxy rule:</p>
  <pre><code>&lt;rule name=&quot;MyReverseProxy&quot; enabled=&quot;true&quot; stopProcessing=&quot;true&quot;&gt;
      &lt;match url=&quot;report(/)?(.*)&quot; /&gt;
      &lt;action type=&quot;Rewrite&quot; url=&quot;http://localhost:7577/dashboard/{R:2}&quot; appendQueryString=&quot;true&quot; /&gt;
  &lt;/rule&gt;
  </code></pre>
  <p>And the OutBound rule:</p>
  <pre><code>&lt;outboundRules&gt;
      &lt;rule name=&quot;MyReverseProxy&quot; enabled=&quot;true&quot; stopProcessing=&quot;false&quot;&gt;
          &lt;match filterByTags=&quot;None&quot; pattern=&quot;dashboard(/)?(.*)&quot; /&gt;
          &lt;action type=&quot;Rewrite&quot; value=&quot;report/{R:2}&quot; /&gt;
      &lt;/rule&gt;
      &lt;preConditions&gt;
          &lt;preCondition name=&quot;ResponseIsHtml1&quot;&gt;
              &lt;add input=&quot;{RESPONSE_CONTENT_TYPE}&quot; pattern=&quot;^text/html&quot; /&gt;
          &lt;/preCondition&gt;
      &lt;/preConditions&gt;
  &lt;/outboundRules&gt;
  </code></pre>
  <p>but for some reason, the outbound rule does not work for me. I get a 404 error and  <a href="https://domain.name/dashboard/" rel="nofollow noreferrer">https://domain.name/dashboard/</a> appears in the browser's address bar.</p>
  <p>What am I doing wrong? My pattern test works correctly, but why does the browser switch to <code>dashboard</code>?</p>
  <p><a href="https://i.stack.imgur.com/OZYMQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OZYMQ.png" alt="IIS Reverse Proxy Rule" /></a></p>
  <p><a href="https://i.stack.imgur.com/sd676.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sd676.png" alt="IIS OutBound Rwrite Rule" /></a></p>