In my Yii2 config I have:
'components' => [ 'urlManager' => [ 'baseUrl' => '', 'enablePrettyUrl' => true, 'showScriptName' => false, 'rules' => [ 'search' => 'site/index', ... ], ...
If I go to
site.com/search it works. If I go to
site.com/site/index it also works and shows the same content. How to redirect the call instead of just showing the response of site/index? It must also redirect with params (