Код: Выделить всё
'rules' => [
'/<firm:\w+>' => 'catalogue/firm',
'/<url:\w+>' => 'content/content',
'/<name:\w+>' => 'catalogue/product',
'/<url:\w+>/firm/<firm:\w+>' => 'catalogue/tree',
'/<url:\w+>' => 'catalogue/tree',
],