I am currently using yii2 urlmanager to create a pretty url. It receives a parameter and then look up users based on it. Unfortunately, if the parameter contains a period, it won’t run at all and redirects to a 404 page.
So, mysite.com/me/jbroad
works perfectly, but
mysite.com/me/j.broad
returns a 404 page.
Here is my url manager code
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'rules' => [
'' => 'site/index',
'me/<id:\w+>' => 'kit/page',
'generate/<id:\w+>' => 'kit/generate',
'<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',
],
],