Hi team,
I’m having a problem with yii2 URL Management. This is my config
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'rules' => [
'login' => 'site/login',
'register' => 'site/register',
'logout' => 'site/logout',
'forgot-password' => 'site/forgot-password',
'admin/dashboard' => 'admin/default/dashboard'
]
],
When I access mywebsite/login => it works but when I access mywebsite/login/ => 404 error. Please help me how to fix this. Thanks