title: How can I update/change the base_url of pagination in CodeIgniter?
body: <p>I'm new to CodeIgniter. I have populated some categories to a view, and the category ID is passing through the URL to the controller then to the model.</p>
  
  <p>I also need to integrate the pagination. For that I have done the base_url like so:</p>
  
  <pre><code>$config['base_url'] = base_url() . "kc_directory/categoryloader/";
  </code></pre>
  
  <p>But when I click on the pagination link, it's returning the following link:</p>
  
  <pre><code>localhost/kc_directory/categoryloader/2
  </code></pre>
  
  <p>When I modify the above link to <code>localhost/kc_directory/categoryloader/2/?value1=1</code> it works, where <code>value1</code> is the variable name and <code>1</code> is the category ID.</p>
  
  <p>How do I change the <code>base_url</code> to achieve this ?</p>