[eluser]Unknown[/eluser]
Hi!
I have simple routes problem that I can't figure out how to solve.
Here is my routes config.
Code:
$route['search/(:any)'] = 'playlists/search/$1';
$route['search/(:any)/page/(:num)'] = 'playlists/search/$1';
What I need to accomplish is that the pagination only accepts numbers. That's what the last route is for, but it won't work.
Exemple:
exemple.com/search/hello/page/2/
It works but if you manipulate the URL like this for example:
exemple.com/search/hello/page/asd/
You get an error instead of the 404 page.
Someone that can help me with this?
Thanks!