title: CodeIgniter .htaccess index.php rewrite not working on user directory
body: <p>I have a little problem with codeigniter, I have a .htaccess for rewrite the index.php it works great if I put my projects on /var/www or if I make a virtual host for it.</p>
  
  <p>But I want to use my user directory such as <a href="http://localhost/~userdir/myproject" rel="nofollow">http://localhost/~userdir/myproject</a>. If I use my user directory when I'm trying to do request to a controller like: <a href="http://localhost/~userdir/myproject/signup" rel="nofollow">http://localhost/~userdir/myproject/signup</a> I get this error:</p>
  
  <blockquote>
    <p>Not Found </p>
    
    <p>The requested URL /index.php was not found on this server.</p>
  </blockquote>
  
  <p>This is my current configuration:</p>
  
  <p><strong>.htaccess</strong></p>
  
  <pre><code>RewriteEngine on
  RewriteCond $1 !^(index\.php|(.*)\.swf|forums|images|css|downloads|jquery|js|robots\.txt|favicon\.ico)
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ /index.php?/$1 [L,QSA]
  </code></pre>
  
  <p><strong>application/config/config.php</strong></p>
  
  <pre><code>$config['base_url'] = '';
  $config['index_page'] = '';
  $config['uri_protocol'] = 'AUTO';
  $config['encryption_key'] = 'myencryption_key';
  //all remaining is the default config
  </code></pre>
  
  <p>This config works great on <a href="http://localhost/" rel="nofollow">http://localhost/</a> and also on production enviroments with a domain like <a href="http://example.com/" rel="nofollow">http://example.com/</a> but not on my user directory <a href="http://localhost/~userdir/project/" rel="nofollow">http://localhost/~userdir/project/</a></p>
  
  <p>What I doing wrong? Any thoughts?
  Thanks in advance.</p>