title: mod rewrite not working on prod while perfectly on dev server - add path into postfix missing
body: <p>I am successfully redirecting on a test system through mod rewrite. Unfortunatelly the "same" production system refuses to redirect within a particular virtualhost. Works for other virtualhosts perfectly. Super strange!</p>
  
  <p>apache conf:</p>
  
  <pre><code>&lt;VirtualHost 194.1.10.8:80&gt;
      ServerName m.test
      rewriteEngine On
  
  &lt;Directory ~ "/home/www/test/MEW/"&gt;
     RewriteRule  ^testdir/(.*)$ subapp_search/index.php?fa=1&amp;category=$1 [L]
  &lt;/Directory&gt;
  
      DocumentRoot /home/www/test/MEW/
  </code></pre>
  
  <p></p>
  
  <p>apache error log file after calling <a href="http://m.test/testdir/example" rel="nofollow">http://m.test/testdir/example</a>:</p>
  
  <pre><code>[error] [client 85.181.129.13] File does not exist: /home/www/test/MEW/testdir
  </code></pre>
  
  <p>I believe the rewrite conditions do not apply, since they are inside a directory directive:</p>
  
  <pre><code> &lt;Directory ...
    RewriteCond ...
  </code></pre>
  
  <p>the log file from mod_rewrite shows no intend to "add path into postfix" </p>
  
  <pre><code>(2) init rewrite engine with requested uri /kleinanzeige/brse-fallingbostel-kragenechse-australische-wasseragame-bis
  (1) pass through /kleinanzeige/brse-fallingbostel-kragenechse-aus
  </code></pre>
  
  <p>tralische-wasseragame-bis</p>
  
  <p>on my dev system it does and ads the correct directory to the path /home/www/project/...</p>
  
  <p>Any ideas how to fix this?</p>
  
  <p>Thank you for any help.</p>