mywebsite.com/it/moto/ should redirect to the home page. Hence i wrote this in routes.php
$route['(\w{2})/(auto|moto)/(.*)'] = '$3';
$route['(\w{2})/(auto|moto)'] = $route['default_controller'];
which works pretty good. Also, mywebsite.com/it/moto/mercatino routes to Mercatino controller, which is perfect.
No, i want this mywebsite.com/it/moto/mercatino/componenti-veicolo/221/molle-originali-r6 to route to this function inside Mercatino controller
public function prodotto($category, $id, $title){
}
hence, i wrote this line in routes.php
$route['(mercatino|market){1}/(:any)/(:num)/(:any)'] = "mercatino/prodotto/$2/$3/$4";
But i get 404 Error. Any idea how to fix this?