title: IIS URL Rewrite - how to see rewritten URL?
body: <p>In IIS I've set up a basic URL Rewrite with an Inbound rule to perform a Rewrite action to another domain:</p>
  
  <p>Pattern match: ^somedirectory/(.*)</p>
  
  <p>Action type: Rewrite</p>
  
  <p>Rewrite URL: <a href="http://www.google.com/" rel="noreferrer">http://www.google.com/</a>{R:1} (using google just as a test)</p>
  
  <p>The problem is, how can I actually see what the server has rewritten the URL to? When I check the IIS logs (I have "Log rewritten URL" option ticked), I would expect to see www.google.com somewhere - but it's nowhere to be found.</p>
  
  <p>The pattern is definitely matching because I get the error: <em>"502 - Web server received an invalid response while acting as a gateway or proxy server."</em></p>
  
  <p>How can I see what is going on behind the scenes (how IIS has changed the request)?</p>