CodeIgniter Pagination is not working with routing <p>I want to show all users page wise initially. So if I browse <code>http://mydomain/user</code> it will redirect to <code>http://mydomain/user/page/1</code> and so on. But if I browse <code>http://mydomain/user/1</code> it will show only single user with id of user. </p> <p><code>http://mydomain/user/1</code> >> it works fine. But as I want pagination so I want to redirect <code>http://mydomain/user</code> to <code>http://mydomain/user/page/1</code> always</p> <p>My Routing Info is:</p> <pre><code>$route['user/(:num)'] = 'user/index/$1'; $route['user'] = 'user/page/$1'; </code></pre> <p>But when I pressed to <code>http://mydomain/user</code> it does not rout to <code>user/page/$1</code>. I have index() method which output to single user information if I give slug. so get a page wise list I used routing and page method. But it is not working. it gives <code>404 Page not found</code></p> <p>Could anybody have solution please..</p>