title: how to Change Codeigniter pagination query string
body: <p>I want to change CodeIgniter pagination query string. When I use query string it will run &amp; the url is good but data remaining same, without query string it will run properly.</p>
  
  <p>My URL look like</p>
  
  <pre><code>example.com/1 
  </code></pre>
  
  <p>But I want it to be like</p>
  
  <pre><code>example.com?page=1
  </code></pre>
  
  <p>Here is my controller code..</p>
  
  <pre><code>$this-&gt;load-&gt;library('pagination');
  
  $config['base_url'] = base_url().'/purchase/index';
  $config['total_rows'] = $this-&gt;db-&gt;count_all('purchase');
  $config['per_page'] = 10;
  $config['page_query_string'] = TRUE;
  $config['query_string_segment'] = 'page';
  
  $this-&gt;pagination-&gt;initialize($config);
  
  $page =($this-&gt;uri-&gt;segment(3)) ? $this-&gt;uri-&gt;segment(3) : 0;
  
  $data['pur_list'] = $this-&gt;purchase_model-&gt;purchase_list($config['per_page'],$page);
  </code></pre>