title: Apache mod_rewrite can't pass variable
body: <p>I'm having a hard time figuring out why my rewrite rules work perfectly online (the site is up and running), but fail when I'm trying to run a local copy on my mac. I'm not using MAMP o LAMP and I have installed apache and php manually. Apache is 2.2.26 and php is 5.4.20.</p>
  
  <p>There are more rules in my .htaccess file, but the ones I'm concerned about are these two:</p>
  
  <pre><code>RewriteRule ^category/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/?$ category.php?slug=$1&amp;page=$2 [L]
  RewriteRule ^category/([a-zA-Z0-9_-]+)/?$ category.php?slug=$1 [L]
  </code></pre>
  
  <p>Basically the variables are not being passed to the php file. Besides this, the rule below works perfectly fine! Even on my local setup I can't see any difference except the fact that I have two rules beginning with "^category/"</p>
  
  <pre><code>RewriteRule ^project/([a-zA-Z0-9_-]+)/?$ project.php?slug=$1 [L]
  </code></pre>
  
  <p>Any clue why this works online (ubuntu) but fails locally?</p>