title: IIS URL Rewrite Rule with Params
body: <p>I am having a hard time getting a URL rewrite rule to work. </p>
  
  <p>I want this url:</p>
  
  <p><code>http://www.mysite.com/oldpage.aspx?oldid=123</code></p>
  
  <p>To rewrite to:</p>
  
  <p><code>http://www.mysite.com/sub/newpage.aspx?newid=123</code></p>
  
  <p>Here is what I have, but it's not working:</p>
  
  <pre><code>&lt;rule name="Old2New" stopProcessing="true"&gt;
      &lt;match url="^oldpage.aspx?oldid=([0-9]+)" /&gt;
      &lt;action type="Rewrite" 
              url="/sub/newpage.aspx?newid={R:1}" 
              appendQueryString="true"  /&gt;
  &lt;/rule&gt;
  </code></pre>
  
  <p>What am I missing?</p>