I see a lot of this question, but I couldn't solve the issue.

I suspecting that it doesn't read the right segment as I have a reroute config and htaccess to remove the index page.

The code is throwing a 404 page.

Here is my Model:

PHP Code:
    public function get_city_reviews($city_id,$limit,$offset) {

    
$list = array();

    
$this->db->from('biz');

    
$this->db->where('city_id',$city_id);

    
$this->db->order_by('created_at','desc');

    
$this->db->limit($limit,$offset);

    
$query $this->db->get();
    foreach(
$query->result() as $row) {

    
$list[] = $row;

       }

    return 
$list;

    } 
My Controller:

PHP Code:
   $this->load->library('pagination');

    
$config = array();

    
$base_url ="local/local/";

    
$config["base_url"] = site_url().$base_url;

    
$config["total_rows"] = $this->bizs->record_count();

    
$config["per_page"] = 5;

    
$config["uri_segment"] = 3;

    
$config['full_tag_open'] = '<p class="pageBar">';

    
$config['full_tag_close'] = '</p>';

    
$config['num_links'] =2;

    
$config['anchor_class'] = 'class="page-num" ';

    
$this->pagination->initialize($config);

    
$page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0;

    
$data["results"] = $this->bizs->get_city_reviews($city->id,$config["per_page"],  
    
$page);

    
$data["pagination_links"] = $this->pagination->create_links();

    
$data['reviews'] =  $data["results"];

    
$this->load->view('local/index',$data); 
My View:

PHP Code:
    <div id="pagination-container">
<div class="pagination">
    <ul>

       <?=$pagination_links?>

    </ul>
    </div>
This is my Routes:

PHP Code:
$route['default_controller'] = "local/city";
   
$route['[0-9a-zA-Z\-_]+'] = "local/city";
   
$route['scaffolding_trigger'] = ""
This is my htaccess:

PHP Code:
<IfModule mod_rewrite.c>
RewriteEngine On

#Removes access to the system folder by users.
#Additionally this will allow you to create a System.php controller,
#previously this would not have been possible.
#'system' can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php/$[L]

#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond 
%{REQUEST_FILENAME} !-d

RewriteRule 
^(.*)$ index.php/$[L]
</
IfModule>

<
IfModule !mod_rewrite.c>


ErrorDocument 404 /index.php
</IfModule
Thanks