UrlManager with get parameters

I am trying to migrate two url rewrites from Yii 1.1 to Yii 2. However I can’t get them to work. This is how they looked in Yii 1:


‘receipt/<action>’ => ‘site/page/view/receipt.<action>’,

‘receipt/<sub>/<action>’ => ‘site/page/view/receipt.<sub>.<action>’

So when I call example.com/receipt views/receipt/index.php gets rendered, when I call example.com/receipt/test/test2 views/receipt/test/test2.php gets rendered. Can I achieve this in yii2? I’ve set up the controller with “page” action (\yii\web\ViewAction) already but I struggle with the rewrites. Can anyone help? Thank you!