title: mod_rewrite only for special subdirectory
body: <p>I want a rewrite rule only for a special subdirectory<br />
  e.g.: Every file/directory that is not existing inside the directory <code>www.domain.com/apps/myapp/[*]</code>, should rewrite to <code>www.domain.com/apps/myapp/index.html</code>.</p>
  <p>It is important, that this rule is only applied for url starting with <code>/apps/myapp</code></p>
  <p>How to build this rule up, as I am totally new to mod_rewrite?
  Is it possible to achieve this with an .htaccess inside <code>/apps/myapp</code>?</p>
  <p><strong>Update</strong></p>
  <p>got it to work with the following, the <code>.htaccess</code> file is located inside <code>/apps/myapp</code>, as wanted:</p>
  <pre><code>RewriteEngine on
  RewriteBase /apps/myapp/
  
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.+)$ index.html [L]
  </code></pre>
  <p>any suggestions for improvements?</p>