Url Rule To Catch All?

Not sure if catch all is the right term but I’m trying to do the following rule.

In Yii 1 I could do


'<action:\w+>/*' => 'site/<action>'

But this doesn’t seem to work in Yii 2.

Yes, but you can give regexp a name


'<action:\w+>/<data:.*>' => 'site/<action>'

and it works.

Thanks, That’s what I was after.

Done it so it would work with and without extra pathinfo.


'<action:\w+><data:(.*)?>' => 'site/<action>',