Hey guys,
I need to handle this kind of url structure {host}/{hash}/{controller}/{action}
The problem is that I can not get it to work while hash is in front of the controller.
Relevant part in configuration looks like this around the urlManager component:
'urlManager' => [
'enablePrettyUrl' => true,
'enableStrictParsing' => false,
'showScriptName' => false,
'normalizer' => [
'class' => 'yii\web\UrlNormalizer',
'action' => \yii\web\UrlNormalizer::ACTION_REDIRECT_TEMPORARY
],
'rules' => [
'GET <hash:[\w\-]+>/<controller:[\w\-]+>/<action:[\w\-]+>' => '<controller>/<action>'
]
]
Best regards!