Pagination and .htaccess - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Pagination and .htaccess (/showthread.php?tid=13729) |
Pagination and .htaccess - El Forum - 12-03-2008 [eluser]bdshan[/eluser] I am having a problem with pagination on my production site, but not on my development site. In the pagainataion links on my dev site I get http://localhost/<sitename>/index.php#, but in production I get http://<domain>/<sitename>/#. Whenever I click a pagination link in production nothing happens the page is not advanced. I think this has something to do with mod_rewrite and my .htaccess, but I don't know enough about it to make heads and tails. This is my .htaccess file Code: DirectoryIndex welcome.php index.php welcome.html Can I add another rule here to get pagination links that will work? Or is there another solution? Pagination and .htaccess - El Forum - 12-03-2008 [eluser]fesweb[/eluser] In my experience, that is more often a problem with your pagination config. If it is not looking for the correct uri_segment, then it won't do much. Code: $pages['total_rows'] = $query->num_rows(); |