Answer the question
In order to leave comments, you need to log in
How to correctly write a routing rule in Yii2?
Hello, I need the user who came to my site to be redirected to the module display.
I'm trying to write the following:
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'enableStrictParsing' => false,
'rules' => [
'/' => 'frontend/web/site-front',
],
],
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question