title: Codeigniter call Function in Controller without index.php
body: <p>I know there are so many posts concering that problem. I tried everything, but without success.</p>
  
  <p>I use xampp v3.2.2 on my windows 10 machine. In my htdocs I got a project called mysite. In there I have codeigniter 3.0.3. </p>
  
  <p><strong>config.php</strong></p>
  
  <pre><code>$config['base_url'] = 'http://localhost/mysite/';
  
  $config['index_page'] = '';
  </code></pre>
  
  <p><strong>routes.php</strong></p>
  
  <pre><code>$route['default_controller'] = 'CI_home';
  </code></pre>
  
  <p>Controller CI_home.php:</p>
  
  <pre><code>class CI_home extends CI_Controller{
  
      function __construct() {
          parent::__construct();
      }
  
      public function index($lang = ''){
          $this-&gt;load-&gt;helper('url');
          $this-&gt;load-&gt;helper('language');
          $this-&gt;lang-&gt;load($lang, $lang);
          $this-&gt;load-&gt;view('view_home');
      }
  }
  </code></pre>
  
  <p>When I call <code>http://localhost/mysite</code>, the page is shown correctly. </p>
  
  <p>The problem is, when I try to <code>http://localhost/mysite/en</code> or <code>http://localhost/mysite/index/en</code> I received a 404 from xampp. </p>
  
  <p>But if I try <code>http://localhost/mysite/index.php/CI_home/index/en</code> it works fine. </p>
  
  <p>What I am doing wrong? How can I remove the "CI_home/index"?</p>
  
  <p><code>http://localhost/mysite/.htaccess:</code></p>
  
  <p><strong>.htaccess</strong></p>
  
  <pre><code>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>I already checked if the mod_rewrite is enabled.</p>
  
  <p>Please help me! </p>
  
  <p>Thanks in advance,
  yab86</p>