I have a custom table in the database with around 2 million rows, to paginate it I am using PageArray->renderPager() function.
<?php
$a = new PageArray();
$a->setTotal($total);
$a->setLimit($limit);
$a->setStart($start);
$a->renderPager();
It is rendering it correctly:
But when I open any page greater than /page999 it gives me Error 404. How to resolve this issue?