title: Rewrite rule not working on virtual host
body: <p>I have spent 2 days on the following problem:</p>
  
  <p>I have a virtual host on an apache 2.4.7 server with the following configuration:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
          DocumentRoot /home/xxx/test/www
          ServerAdmin webmaster@xxx.com
          ServerName test.xxx.com
          ServerAlias www.test.xxx.com
          AddHandler x-httpd-php5 .php
  
          ErrorLog ${APACHE_LOG_DIR}/xxx-test-error.log
          LogLevel warn
          LogLevel alert rewrite:trace6
  
          CustomLog ${APACHE_LOG_DIR}/xxx-test-access.log combined
  
          &lt;Directory /&gt;
                  Options FollowSymLinks
                  AllowOverride All
          &lt;/Directory&gt;
  
          &lt;Directory /home/xxx/test/www/&gt;
                  Options Indexes FollowSymLinks MultiViews
                  AllowOverride All
                  Require all granted
          &lt;/Directory&gt;
  
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>And an .htaccess file like this:</p>
  
  <pre><code> &lt;IfModule mod_rewrite.c&gt;
      RewriteEngine On
      RewriteRule ^article/([^/\.]+)/?$ article-page.php?name=$1 [L]
      RewriteRule ^list/.?$ list.php [L]
      RewriteRule ^sitemap.xml$ sitemap.php [L]
      &lt;/IfModule&gt;
  </code></pre>
  
  <p>I want to have all the URL started by /list/ treated with list.php</p>
  
  <p>But when I lauch the URL: <a href="http://test.xxx.com/list/yyy-category" rel="nofollow">http://test.xxx.com/list/yyy-category</a></p>
  
  <p>It just returns a 404. I have checked, the list.php exists and have the good rights.</p>
  
  <p>I checked the logs and I got:</p>
  
  <pre><code>[Sun Feb 14 21:00:23.764091 2016] [rewrite:trace3] [pid 17393] mod_rewrite.c(468): [client 79.81.246.191:53329] 79.81.246.191 - - [test.xxx.com/sid#66dd81c14970][rid#66dd81b400a0/subreq] [perdir /home/xxx/test/www/] add path info postfix: /home/xxx/test/www/list.php -&gt; /home/xxx/test/www/list.php/yyy-category, referer: http://test.xxx.com/
  [Sun Feb 14 21:00:23.764163 2016] [rewrite:trace3] [pid 17393] mod_rewrite.c(468): [client 79.81.246.191:53329] 79.81.246.191 - - [test.xxx.com/sid#66dd81c14970][rid#66dd81b400a0/subreq] [perdir /home/xxx/test/www/] strip per-dir prefix: /home/xxx/test/www/list.php/yyy-category -&gt; list.php/yyy-category, referer: http://test.xxx.com/
  [Sun Feb 14 21:00:23.764194 2016] [rewrite:trace3] [pid 17393] mod_rewrite.c(468): [client 79.81.246.191:53329] 79.81.246.191 - - [test.xxx.com/sid#66dd81c14970][rid#66dd81b400a0/subreq] [perdir /home/xxx/test/www/] applying pattern '^article/([^/\\.]+)/?$' to uri 'list.php/yyy-category', referer: http://test.xxx.com/
  [Sun Feb 14 21:00:23.764228 2016] [rewrite:trace3] [pid 17393] mod_rewrite.c(468): [client 79.81.246.191:53329] 79.81.246.191 - - [test.xxx.com/sid#66dd81c14970][rid#66dd81b400a0/subreq] [perdir /home/xxx/test/www/] add path info postfix: /home/xxx/test/www/list.php -&gt; /home/xxx/test/www/list.php/yyy-category, referer: http://test.xxx.com/
  [Sun Feb 14 21:00:23.764259 2016] [rewrite:trace3] [pid 17393] mod_rewrite.c(468): [client 79.81.246.191:53329] 79.81.246.191 - - [test.xxx.com/sid#66dd81c14970][rid#66dd81b400a0/subreq] [perdir /home/xxx/test/www/] strip per-dir prefix: /home/xxx/test/www/list.php/yyy-category -&gt; list.php/yyy-category, referer: http://test.xxx.com/
  [Sun Feb 14 21:00:23.764287 2016] [rewrite:trace3] [pid 17393] mod_rewrite.c(468): [client 79.81.246.191:53329] 79.81.246.191 - - [test.xxx.com/sid#66dd81c14970][rid#66dd81b400a0/subreq] [perdir /home/xxx/test/www/] applying pattern '^list/(.?)$' to uri 'list.php/yyy-category', referer: http://test.xxx.com/
  [Sun Feb 14 21:00:23.764355 2016] [rewrite:trace3] [pid 17393] mod_rewrite.c(468): [client 79.81.246.191:53329] 79.81.246.191 - - [test.xxxcom/sid#66dd81c14970][rid#66dd81b400a0/subreq] [perdir /home/xxx/test/www/] add path info postfix: /home/xxx/test/www/list.php -&gt; /home/xxx/test/www/list.php/yyy-category, referer: http://test.xxx.com/
  [Sun Feb 14 21:00:23.764386 2016] [rewrite:trace3] [pid 17393] mod_rewrite.c(468): [client 79.81.246.191:53329] 79.81.246.191 - - [test.xxx.com/sid#66dd81c14970][rid#66dd81b400a0/subreq] [perdir /home/xxx/test/www/] strip per-dir prefix: /home/xxx/test/www/list.php/yyy-category -&gt; list.php/yyy-category, referer: http://test.xxx.com/
  [Sun Feb 14 21:00:23.764414 2016] [rewrite:trace3] [pid 17393] mod_rewrite.c(468): [client 79.81.246.191:53329] 79.81.246.191 - - [test.xxx.com/sid#66dd81c14970][rid#66dd81b400a0/subreq] [perdir /home/xxx/test/www/] applying pattern '^sitemap.xml$' to uri 'list.php/yyy-category', referer: http://test.xxx.com/
  [Sun Feb 14 21:00:23.764445 2016] [rewrite:trace1] [pid 17393] mod_rewrite.c(468): [client 79.81.246.191:53329] 79.81.246.191 - - [test.xxx.com/sid#66dd81c14970][rid#66dd81b400a0/subreq] [perdir /home/xxx/test/www/] pass through /home/yyy/test/www/list.php, referer: http://test.xxx.com/
  </code></pre>
  
  <p>Any idea on how to fix this ?</p>