title: CodeIgniter on subdomain and htaccess
body: <p>I'm trying to setup a website based on CodeIgniter.
  For developing I want to have the <code>domain dev.XXX.com</code></p>
  
  <p>I changed my structure so I've got a <code>no_www</code> and a <code>public_www</code> folder.
  Both are in the root of <code>dev.XXX.com</code></p>
  
  <p>So my idea was to rewrite url's form </p>
  
  <p><code>dev.XXX.com/index.php/test</code> </p>
  
  <p>to </p>
  
  <p><code>dev.XXX.com/public_www/index.php/test</code></p>
  
  <p>So I just want add <code>public_www</code> to all the requests</p>
  
  <p>In my htaccess file I've got:</p>
  
  <pre><code>RewriteRule ^(.*)$ /public_www/$1 [L]
  </code></pre>
  
  <p>But I always get 500 - Internal Server Error</p>