title: Apache : How to Use Rewrite Engine Inside Alias
body: <p>I have this alias configuration:</p>
  
  <pre><code>Alias /test/ "D:/WWW/Test/"
  &lt;Directory "D:/WWW/Test/"&gt;
      Order allow,deny
      Allow from all
  &lt;/Directory&gt;
  </code></pre>
  
  <p>Then inside <code>D:/WWW/Test/</code> directory, I put .htaccess with the following configuration:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
    RewriteEngine on
  
    RewriteRule ^([^.]*\.css)$ resources/$1 [L,NC]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>I just want to redirect all request from <code>localhost/test/css/*</code> to <code>localhost/test/resources/css/*</code>.</p>
  
  <p>But it seems that the <code>.htaccess</code> is ignored. Even if I put <code>DirectoryIndex blablabla.php</code> , browser still displays index.html.</p>
  
  <p>How to solve this? Thank you.</p>