[Solved] Yii2 $_GET parameter in URL
Inside your config, where you declare your components, add or modify the urlManager like this: ‘urlManager’ => [ ‘enablePrettyUrl’ => true, ‘showScriptName’ => false, ‘enableStrictParsing’ => false, ‘rules’ => [ ‘projects/<url>’ => ‘projects/ACTION’, ], ], In order for this to work, first, the path projects/action has to match your controller action, and then projects/<url> means … Read more