title: 2 url rewrite rule for 1 dynamic page
body: <p>I have a dynamic page called show.php. The page is dynamic and the url may be either <code>show.php?name=john-doe</code> or <code>show.php?category=student</code>.</p>
  
  <p>I'm trying to create a rewrite rule that turns the url into <code>/show/john-doe.html</code> for names or <code>/show/student.html</code> for category.</p>
  
  <p>This is what I have in my .htaccess so far.</p>
  
  <pre><code>RewriteRule ^show/([^/]*)\.html$ show.php?name=$1 [L]
  RewriteRule ^show/([^/]*)\.html$ show.php?category=$1 [L]
  </code></pre>
  
  <p>Currently, only the name rule works but the category rule doesn't. What's wrong?</p>