title: codeigniter returns 404 for everything inside subfolder
body: <p>In my development environment (Mac OS, Apache, CI app inside a WP folder) my app works fine. Today I deployed it to server (Ubuntu Server, Apache, same CI app inside WP folder) and everything that I try return the 404 page.</p>
  
  <p>This is my app/.htaccess:</p>
  
  <pre><code>SetEnv CI_ENV development
  
  RewriteEngine on
  RewriteCond $1 !^(index\.php|resources|robots\.txt)
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php/$1 [L,QSA]
  </code></pre>
  
  <p>mod_rewrite is already enabled in this server.</p>
  
  <p>In my config.php I've already tried: </p>
  
  <pre><code> $config['base_url'] = 'http://server/app/';
  
   // problem in both situations
   $config['index_page'] = 'index.php';
   $config['index_page'] = '';
  </code></pre>
  
  <p>What is wrong here? When I go to <a href="http://server/app/index.php" rel="nofollow">http://server/app/index.php</a> I get a 404 message. If I go to <a href="http://server/app/controller/action" rel="nofollow">http://server/app/controller/action</a> I also get a 404 message.</p>