title: mod rewrite how do i add multiple rules with different combinations
body: <p>i have been pulling my hair out for 3 days. i ve checked forums and tutorials but i just dont get it. i have a url of</p>
  
  <pre><code>    http://localhost/gallery/2012/2
  </code></pre>
  
  <p>but i also need to get</p>
  
  <pre><code>     http://localhost/gallery/2
  </code></pre>
  
  <p>this is my htaccess file</p>
  
  <pre><code>    &lt;IfModule mod_rewrite.c&gt;
       RewriteEngine On
       RewriteBase /
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule ^([a-zA-Z0-9_-]+)/([0-9-]+)/([0-9-]+)/?$     index.php?page=$1&amp;date=$2&amp;pagenum=$3  [L]
       RewriteRule ^([a-zA-Z0-9_-]+)/([0-9-]+)/?$    index.php?page=$1&amp;date=$2 [L]
       RewriteRule ^([a-zA-Z0-9_-]+)/?$    index.php?page=$1 [L]
      &lt;/IfModule&gt;
  </code></pre>
  
  <p>how would i go about adding another rule</p>
  
  <pre><code>    RewriteRule ^([a-zA-Z0-9_-]+)/([0-9-]+)/?$  index.php?page=$1&amp;pagenum=$2 [L]
  </code></pre>