problem with url manager rules


so I have this rule in my url manager configurations:

        'urlManager' => [

            'enablePrettyUrl' => true,

            'rules' => [




it works fine for a URL like but the problem occurs when the URL is, that last "/" seems to broke the link and a 404 exception is thrown.

I added the following rule to rules array but it didn’t solve it:


any suggestions?