title: Dynamic .htaccess
body: <p>I am creating a modular CMS using the codeigniter framework, the main asset directory is:</p>
  
  <p><code>/public/assets/[admin|public]/[css|images|js]</code> </p>
  
  <p>my current htaccess routes everything except requests starting with 'public' to the index.php file.</p>
  
  <p>The new module system allows each module to have its own assets which would be located at </p>
  
  <pre><code>application/modules/*SOME_MODULE*/assets/[admin|public]/[css|images|js]
  </code></pre>
  
  <p>my question is, is it possible to create a rule to stop anything from a modules asset directory being routed to index.php?</p>
  
  <p>My Current .httacces is:</p>
  
  <pre><code>RewriteEngine on
  
  RewriteCond $1 !^(index\.php|images|robots\.txt|public/*)
  RewriteRule ^(.*)$ /CI-Playground/index.php/$1 [L]
  </code></pre>