title: Controller function not found on the server in codeigniter
body: <p>So I got exactly this 404 error :</p>
  <blockquote>
  <p>Not Found</p>
  <p>The requested URL /adminigniter1/Usercontroller/insert was not found on this server.</p>
  <p>Apache/2.4.18 (Ubuntu) Server at localhost Port 80</p>
  </blockquote>
  <p>When I wanted to call a function from the controller, from what I read about it has to do with the .htaccess file(and I placed that in my source folder adminigniter1), but mine seems to look ok:</p>
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
  &lt;/IfModule&gt;
  
  &lt;IfModule !mod_rewrite.c&gt;
  ErrorDocument 404 /adminigniter1/index.php
  &lt;/IfModule&gt;
  </code></pre>
  <p>From my index.php I send to that controller function like this:</p>
  <pre><code>&lt;form method = &quot;POST&quot; action = &quot;&lt;?php echo base_url('Usercontroller/insert') ?&gt;&quot;&gt;
  </code></pre>
  <p>And this is my controller :</p>
  <pre><code>&lt;?php
  
  class Usercontroller extends CI_Controller {
  function __construct() {
      parent::__construct();
      $this-&gt;load-&gt;model('Usermodel');
  
  }
  public function index() {
      $data[&quot;content&quot;]= &quot;user/index&quot;;
      $data[&quot;getStatus&quot;] = $this-&gt;Usermodel-&gt;getStatus();
      $this-&gt;load-&gt;view(&quot;main&quot;,$data);
  }
  public function insert() {
      $datai= $this-&gt;input-&gt;post();
      
      if(isset($datai)){
          echo $datai['txtApartament'];
          exit;
      }
  }
  </code></pre>
  <p>}</p>
  <p>What can be wrong ?</p>