title: IIS Url Rewrite ARR issue
body: <p>I configured IIS as a reverse proxy using Url Rewrite module and ARR 3.
  I have a public domain which redirect to my application on localhost.
  It's working fine excepted when the application redirect to another host.
  ie: redirecting to "<a href="https://www.google.com/search?q=url+rewrite+iis+arr+3" rel="nofollow noreferrer">https://www.google.com/search?q=url+rewrite+iis+arr+3</a>"
  My browser shows "<a href="http://localhost/search?q=url+rewrite+iis+arr+3" rel="nofollow noreferrer">http://localhost/search?q=url+rewrite+iis+arr+3</a>"
  which fails</p>
  
  <p>The hosted application is using Asp Net Mvc with framework.net 4.5.
  The application is working with integrated pipeline in IIS application pool configuration.</p>
  
  <p>Using Fiddler, I can see the following trace on redirect :</p>
  
  <pre><code>HTTP/1.1 302 Found
  Cache-Control: private
  Content-Length: 350
  Content-Type: text/html; charset=utf-8
  Location: http://localhost/search?q=url+rewrite+iis+arr+3
  Server: Microsoft-IIS/7.5
  X-Powered-By: ARR/3.0
  X-Powered-By: ASP.NET
  Date: Wed, 02 Nov 2016 16:39:18 GMT
  
  &lt;html&gt;&lt;head&gt;&lt;title&gt;Object moved&lt;/title&gt;&lt;/head&gt;&lt;body&gt;
  &lt;h2&gt;Object moved to &lt;a href="https://www.google.com/search?q=url+rewrite+iis+arr+3"&gt;here&lt;/a&gt;.&lt;/h2&gt;
  &lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>My IIS config :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;configuration&gt;
      &lt;system.webServer&gt;
          &lt;rewrite&gt;
              &lt;rules&gt;
                  &lt;rule name="ReverseProxyInboundRule" stopProcessing="true"&gt;
                      &lt;match url="(.*)" /&gt;
                      &lt;action type="Rewrite" url="http://localhost/{R:1}" /&gt;
                  &lt;/rule&gt;
              &lt;/rules&gt;
              &lt;outboundRules&gt;
                  &lt;rule name="ReverseProxyOutboundRule1" preCondition="IsRedirection" stopProcessing="true"&gt;
                      &lt;match filterByTags="A" pattern="^http(.*)" negate="false" /&gt;
                      &lt;action type="None" /&gt;
                  &lt;/rule&gt;
                  &lt;preConditions&gt;
                      &lt;preCondition name="IsRedirection"&gt;
                          &lt;add input="{RESPONSE_STATUS}" pattern="3[0-9][0-9]" /&gt;
                      &lt;/preCondition&gt;
                  &lt;/preConditions&gt;
              &lt;/outboundRules&gt;
          &lt;/rewrite&gt;
      &lt;/system.webServer&gt;
  &lt;/configuration&gt;
  </code></pre>