title: Pagination with Codeigniter, without index function
body: <p>I have a controller for example:</p>
  
  <pre><code>class Users extends CI_Controller
  {
      function index()
      {
          $this-&gt;load-&gt;library('pagination');
  
          $config['base_url'] = base_url() . 'index.php/users';
          $config['total_rows'] = 55;
          $config['per_page'] = 10;
          $this-&gt;pagination-&gt;initialize($config); 
  
          echo $this-&gt;pagination-&gt;create_links();
      }
  }
  </code></pre>
  
  <p>Then the pagination will be:</p>
  
  <pre><code>base_url() . 'index.php/users/10
  base_url() . 'index.php/users/20
  base_url() . 'index.php/users/30
  ..
  </code></pre>
  
  <p><strong>THE PROBLEM</strong></p>
  
  <p>It displays the links fine, but when I click it shows 404.
  It works fine only if the links will be like this (with the function index):</p>
  
  <pre><code>base_url() . 'index.php/users/index/10
  base_url() . 'index.php/users/index/20
  base_url() . 'index.php/users/index/30
  ..
  </code></pre>
  
  <p>Anyway, I don't want that the users will see the address with <code>index</code>, what should I do?
  I want to cancel the address with index + the pagination will work without it.</p>