title: Codeigniter at subfolder and htaccess for inner redirection
body: <p>I have a project with custom engine at backend, I'm trying to hook every request at <code>/somewhere/</code> with my CodeIgniter. So I put my CI to <code>/www/somewhere/</code>, configured my CodeIgniter's .htaccess with new RewriteBase, so it now looks like:</p>
  
  <pre><code>AddDefaultCharset UTF-8
  Options All -Indexes
  
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /somewhere/
  
  DirectoryIndex index.html index.php 
  
  RewriteCond %{REQUEST_URI} ^system.*
  RewriteRule ^(.*)$ /index.php?/$1 [L]
  
  RewriteCond %{REQUEST_URI} ^application.*
  RewriteRule ^(.*)$ /index.php?/$1 [L]
  
  
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>My CI creates static html for this project and stores it at <code>/compiled/</code>, so I have this structure</p>
  
  <pre><code>/www/
    /custom-engine/
    /img/
    /js/
    /somewhere/    &lt;--- My CI's root
       /application/
       /system/
       /compiled/      &lt;--- My storage for HTML
          my-file.html
          /my-compiled-folder/
          /one-more/
              /sub-compiled/
                 index.html
  </code></pre>
  
  <p>And everything works fine. But. But I need to open my compiled files without <code>/compiled/</code> in URL. </p>
  
  <p>Works: <code>http://domain.com/somewhere/compiled/one-more/sub-compiled/</code></p>
  
  <p>Need: <code>http://domain.com/somewhere/one-more/sub-compiled/</code></p>
  
  <p>I needn't redirect to my compiled folder/file, just open it. So I need add something to my .htaccess. Also I want keep access to my CI. For example I have controller <code>helloworld</code> and now it accessible from <code>http://domain.com/somewhere/helloworld/</code> (in fact I have administration panel for this <code>somewhere</code> here).</p>
  
  <p>So.. I want to open files directly from my <code>/compiled/</code>, but also I need to save my CI. What should I add to my .htaccess?</p>