Answer the question
In order to leave comments, you need to log in
How to set up CNC in Yii2?
I used to set it up, everything worked out, now it doesn’t want to, it gives out 404, if so:
'urlManager' => [
'showScriptName' => false,
'enablePrettyUrl' => true,
'enableStrictParsing' => true,
'rules' => array(
'<action>' => 'site/<action>',
),
],
RewriteEngine On RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php
'enableStrictParsing' => true,
'rules' => array(
'<action>' => 'site/<action>',
),
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