Url Management Error

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

Anyone can help me clarify this ? I’m a little confused.

Thanks anyway

Hi, did you ever find out the reason for this error? as I have encountered the same and been pulling out my hair over it. I’ve posted a separate thread but not much help if any from the community/dev so far, rather disappointed.