I want to make all my pages/urls seo friendly including the dynamic ones but i'm stuck at it.
I made it work for the static pages for example :
$routes->connect('/:lang/about',['controller' => 'Pages', 'action' => 'about'] );
But when i add the following to routes
$routes->connect('/:lang/:slug',['controller' => 'MyController', 'action' => 'index'], ['pass' => ['slug']] );
All the pages redirect to MyController even the static ones, so i'm wondering if there is any solution to that one.
Thanks.