For example There is such a route and url
http://mysite/test/article-1
and
// Route on Test Route::set('Test', 'test/<alias>',array('alias'=>'\D+')) ->defaults(array( 'controller' => 'Test', 'action' => 'article', )); // Route on Test Pages Route::set('Test', 'test/<alias>',array('alias'=>'\d+')) ->defaults(array( 'controller' => 'Test', 'action' => 'index', ));
this will only work for http: // mysite / test / article, how to do it more correctly and so that alias
does not begin with a digit?