i use below code for url manager in Yii2 Framework :
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'rules' => [
'<controller:\w+>/<action:\w+>' => '<controller>/<action>',
'<module:\w+>/<action:\w+>' => '<module>/default/<action>'
]
],
but. when enable the rule that remove default from url for modules , the rule for controllers stops working.
where the problem is my code?
thanks.