Bad Request (#400) Missing required parameters:id

On my local (laptop, with the IIS server, when I click on an icon to view my recording,
Yii generates a link to view the recording:

The same Yii codes on the Apache server do not work:
here is what Yii generates:
instead of ?id=6

So what’s missing: ?id=6
So, I have the following error:

Bad Request (#400)
Missing required parameters:id
The above error occurred while the Web server was processing your request.

Thanks for your help

verify that it is labeled

‘urlManager’ => [
‘enablePrettyUrl’ => true,
‘showScriptName’ => false,
‘rules’ => [

Yes it is but
into the

//... etc
'db' => $db,
'urlManager' => [
     'enablePrettyUrl' => true,
     'showScriptName' => false,
      'rules' => [],
  //... etc

try this

'urlManager' => [
            'class' => 'yii\web\UrlManager',
            'enablePrettyUrl' => true,
            'showScriptName' => false,
            'rules' => [
                '<controller:\w+>/<id:\d+>' => '<controller>/view',
                '<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',
                '<controller:\w+>/<action:\w+>' => '<controller>/<action>'

Can you enable showScriptName? As far as I remember, you have to do some htacess or similar redirections if you disable that