CodeIgniter Forums
Routing issue - Pagination not working properly - 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: Routing issue - Pagination not working properly (/showthread.php?tid=49264)

Pages: 1 2 3


Routing issue - Pagination not working properly - El Forum - 02-14-2012

[eluser]InsiteFX[/eluser]
Code:
DirectoryIndex index.php

RewriteEngine On
RewriteBase /percutz/

#If isso é um arquivo, diretório ou link.
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -l
RewriteRule ^(.*)$ index.php/$1 [NC,L]



Routing issue - Pagination not working properly - El Forum - 02-14-2012

[eluser]Mauricio de Abreu Antunes[/eluser]
Sorry, but it did not work.
Error: page not found.

Your rules did not work.

Thanks!


Routing issue - Pagination not working properly - El Forum - 02-14-2012

[eluser]Mauricio de Abreu Antunes[/eluser]
Code:
$config['uri_segment'] = 2;

Sorry Aken, sorry InsiteFX.

My code has this line now and it worked.





Routing issue - Pagination not working properly - El Forum - 03-06-2012

[eluser]adinin[/eluser]
Just wanted to confirm that Mauricio's final post about setting the uri-segment config parameter is what fixed the same issue for me, as well. So if you're reading this, struggling with the pager not moving up pages despite letting you click the "next" button, try this fix first. It may save you lots of time.