title: How can I make this rewrite rule so that it can accept querystring?
body: <p>I have a url rewrite rule that uses map method. </p>
  
  <pre><code>            &lt;rewriteMap name="Pages"&gt;
                  &lt;add key="/search" value="/search.asp" /&gt;
              &lt;/rewriteMap&gt;
  
  
  
  
              &lt;rule name="Rewrite rule1 for Pages"&gt;
                  &lt;match url=".*" /&gt;
                  &lt;conditions&gt;
                      &lt;add input="{Pages:{REQUEST_URI}}" pattern="(.+)" /&gt;
                  &lt;/conditions&gt;
                  &lt;action type="Rewrite" url="{C:1}" appendQueryString="true" /&gt;
              &lt;/rule&gt;
  </code></pre>
  
  <p>My problem is when I use this page like below, I get error:</p>
  
  <p>/search?keyword=math</p>
  
  <p>I get HTTP Error 404.0 - Not Found</p>
  
  <p>Detailed Error Information:
  Module     IIS Web Core
  Notification       MapRequestHandler
  Handler    StaticFile
  Error Code     0x80070002
  Requested URL      <a href="http://localhost:85/search?keyword=math" rel="nofollow noreferrer">http://localhost:85/search?keyword=math</a>
  Physical Path      D:\webs\V5ST\HTML\search
  Logon Method       Anonymous
  Logon User     Anonymous</p>
  
  <p>How can I make this so that whatever querystring is passed to search.asp?</p>