title: Issue with Similar Rewrite Rules in Web.config
body: <p>I have a rule in my web.config that works. </p>
  
  <pre><code>&lt;rule name="Guestbook Rewrite" stopProcessing="true"&gt;
  &lt;match url="(.*?)-guestbook" /&gt;
  &lt;action type="Rewrite" url="guestbook.asp?gb={R:1}" /&gt;
  &lt;/rule&gt;
  </code></pre>
  
  <p>When someone goes to MyDomain.com/view-guestbook or MyDomain.com/sign-guestbook they go to the appropriate pages. </p>
  
  <p>What I am having difficulty with is that I have several pages of guestbook entries, so I want to be able to add a rule so that when someone goes to “view-guestbook-page-9” they are actually getting MyDomain.com/guestbook.asp?gb=view&amp;pagenum=9. I had added the following rule, but as soon as I did I got 500 errors. I am going to guess that either it is in conflict with the previous rule or the syntax is incorrect. </p>
  
  <pre><code>&lt;rule name="Guestbook View Page Rewrite" stopProcessing="true"&gt;
  &lt;match url="view-guestbook-page-(.*)" /&gt;
  &lt;action type="Rewrite" url="guestbook.asp?gb=view&amp;pagenum={R:1}" /&gt;
  &lt;/rule&gt;
  </code></pre>
  
  <p>How can I have both rules or a single rule that would solve both? </p>