Custom route with optional tokens I have a question about custom routes set in routes.php. Can route segment be optional?

Taking example from docs - 'blog/archive/&lt;year:\d{4}&gt;' =&gt; 'controller/action/path', can we make year token optional in url and still match route when someone vists blog/archive?
Short and sweet... I think you just need to add a second route.

'blog/archive' =&gt; 'controller/action/path',
'blog/archive/&lt;year:\d{4}&gt;' =&gt; 'controller/action/path'