EllisLab text mark
Advanced Search
     
Pagination Throws HTTP Error 404 only on webserver not in localhost
Posted: 28 February 2011 05:34 PM   [ Ignore ]
Joined: 2011-02-28
2 posts

Hello Guys,

I am using CodeIgniter 1.7 and I am facing problem with Pagination.

I was implement pagination successfully and tested it perfectly in my localhost. But when

I was upload all files on my webserver at that time I found errors when I am trying to access different pages from the footer links.

Following are my piece code for pagination.

$this->load->library('pagination');

 
$config['base_url'base_url().'index.php/training/index/';
 
$config['total_rows'$this->db->count_all('training');
 
$config['per_page''5'
 
$config['first_link''First';
 
$config['last_link''Last';
 
$config['full_tag_open''<p>';
 
$config['full_tag_close''</p>';

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

 
$offset    = (int)$this->uri->segment(3);
 
$offset = ( ! is_numeric($offset) || $offset 1) ? $offset

For live link for the pagination you can checkout below mentioned link.

http://www.iamkrunaltrivedi.com/index.php/training

I was try out lots of things but not able to get solution for it.

Please help me to solve this problem. If you need any extra information then please let me know about it.

Thanks,
Rushit Shukla
Rushit.Shukla@aavidtechnologies.com
http://www.AavidTechnologies.com