title: URL Rewrite web.config
body: <p>i need little help with url rewrite. My php site is running on windows server. I am trying to rewrite urls so both categories and articles looks like this:</p>
  
  <p>hxxp://domain.com/category-name<br/>
  hxxp://domain.com/article-title</p>
  
  <p>This is what i have in web.config. It's working fine for categories but not for articles, what am i doing wrong?</p>
  
  <pre><code>&lt;rule name="category"&gt;
      &lt;match url="^([_0-9a-z-]+)" /&gt;
          &lt;conditions&gt;
              &lt;add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /&gt;
              &lt;add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /&gt;
          &lt;/conditions&gt;
      &lt;action type="Rewrite" url="category.php?slug={R:1}" /&gt;
  &lt;/rule&gt;
  &lt;rule name="article"&gt;
      &lt;match url="^([_0-9a-z-]+)" /&gt;
          &lt;conditions&gt;
              &lt;add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /&gt;
              &lt;add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /&gt;
          &lt;/conditions&gt;
      &lt;action type="Rewrite" url="article.php?slug={R:1}" /&gt;
  &lt;/rule&gt;
  </code></pre>