title: Mod-Rewrite Question
body: <p>I want to make a category path with pagination. URL's would be as followed;</p>
  
  <p>All paths should work with or without trailing slash (if possible)</p>
  
  <blockquote>
  <pre><code>/category/entertainment-and-music/
  
  /category/entertainment-and-music/music/
  </code></pre>
    
    <p>(represents "music" category "under
    entertainment and music")</p>
  
  <pre><code>/category/entertainment-and-music/5/
  </code></pre>
    
    <p>(represents 5th page for "ent. and
    music")</p>
  
  <pre><code>/category/entertainment-and-music/music/5/
  </code></pre>
    
    <p>(represents 5th page for "ent. and
    music/music")</p>
  </blockquote>
  
  <p>I tried something like that but doesn't work</p>
  
  <pre><code>RewriteRule ^category/(.*)/? /category.php?slug=$1&amp;page=1
  RewriteRule ^category/(.*)/(.*)/? /category.php?slug=$1&amp;page=$2
  </code></pre>
  
  <p>How can I do something flexible like that?</p>
  
  <p>Thanks in advance...</p>