Answer the question
In order to leave comments, you need to log in
How to remove duplicates after setting cnc urls in Yii2?
Hello!
I ask for help from Yii2 experts. I'm using the basic app.
I registered the following UrlManagera settings in config/web.php:
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'enableStrictParsing' => true,
'rules' => [
['class' => 'app\components\SeoUrlRule', 'connectionID' => 'db'],
],
]
elseif (!$request->getPathInfo()) {
return [ 'home/index', [] ];
}
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
//'enableStrictParsing' => true,
'rules' => [
//['class' => 'app\components\SeoUrlRule', 'connectionID' => 'db'],
],
]
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