title: Need help with Ionic rewriter in ASP.NET
body: <pre><code>RewriteRule ^/main/mypage$ / [I]
  RewriteRule ^/main/mypage/$ /main/general/myPage.aspx?ID=$1&amp;gid=$2 [I]
  </code></pre>
  
  <p>Above's the ionic entry in my <code>.ini</code> file.</p>
  
  <p>Now, when I write the following in my code file and run it it says "file not found". What's wrong?</p>
  
  <pre><code>str = str.Replace("#RESET#", "&lt;a href='" + QAB.Con.mySite + "mypage?myID=" + ID + "&amp;gd=" + gid + "'&gt;Click here&lt;/a&gt;");
  </code></pre>
  
  <p>Something's wrong with this part:-</p>
  
  <pre><code>"mypage?myID=" + UserID + "&amp;gd=" + gid + "
  </code></pre>
  
  <p>Because when I type here the full name of the page, that is, <code>/main/general/myPage.aspx</code> instead of the above part then it runs all right.</p>
  
  <p>How can it be fixed?</p>
  
  <p><strong>[EDIT]
  I made changes in "str" as follows. The same problem persists.</strong></p>
  
  <pre><code>"mypage/" + ID + "/" + gid + "
  </code></pre>