We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Looks like the 2nd rule does not work, why?

$router->add('/Videos/{id:.+}',        ['controller' => 'Videos', 'action' => 'index']);
$router->add('/Videos/{id:.+}/{t:.+}', ['controller' => 'Videos', 'action' => 'index']);

match /Videos/123 or /Videos/123/Furious-7

Thanks.



29.1k
Accepted
answer

Oh, I removed the 3rd rule, it works now, thanks.