title: Apache rewrite rule for whole directory
body: <p>I would like to put a rewrite rule </p>
  
  <pre><code>RewriteRule /test /my/long/path/index.html
  </code></pre>
  
  <p>but my index.html fetch other files, by ajax, so it's not working simple like this. I need a rule for all subfiles of the directory<br>
  I tried:</p>
  
  <pre><code>RewriteRule /test /my/long/path/
  RewriteRule /test/* /my/long/path/*
  </code></pre>
  
  <p>but I end up with a funny redirect  <a href="http://my.domain.co/test/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/" rel="nofollow">http://my.domain.co/test/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/</a></p>
  
  <p>Sorry for my ignorance in Apache, and thx</p>