I use the advanced template in Yii2. Frontend did, everything works well there, but when I started doing backend I came across an error.
I do through beautiful urls, that is, I write
'urlManager' => [ 'enablePrettyUrl' => true, 'showScriptName' => false, 'rules' => [ '/' => 'admin/index', '/add' => 'admin/add-page', ], ] That is, according to the idea, the actionAddPage () method of the AdminController controller should be invoked at http://mysite.ru/add-page . But it gives me just
Not Found The requested URL /add was not found on this server. With that, in the frontend everything works great. Help understand the problem
/add, you will have to call the admin / add-page route - Blacknife