L
L
leni_m2019-03-12 16:43:58
Yii
leni_m, 2019-03-12 16:43:58

Why doesn't CNC work in Yii2?

Naked project, everything works, but now I turn on the CNC

'urlManager' => [
            'enablePrettyUrl' => true,
            'showScriptName' => false,
            'rules' => [
            ],
        ]
I update the main page, and the links all change to the CNC (site / about, etc.), but when you click on them, a 404 error pops up. I thought it was wrong, I watched a video tutorial on CNC in yii2 and there they just turn on the CNC and add .htaccess (but I didn’t add it, because I immediately specified the web folder in the open server). But in the video tutorial, for some reason, the CNC pages open, although in fact they did the same there - they just uncommented the urlManager, and I get 404.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Bay, 2019-03-12
@leni_m

Well, zashib, sailed. My car won't start. They showed me at a driving school that you have to put the key in the ignition, but I have pedals from a bike.

and there they just turn on the CNC and add .htaccess (but I didn’t add it, because I immediately specified the web folder in the open server)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question