I'm having issues figuring out how to process some old URLs in Yii 1.1 that currently return 404. Below a small bit of the config file.
'urlManager' => array(
'class' => 'UrlManager',
'urlFormat' => 'path',
'showScriptName' => false,
'rules' => array(
'/' => '/site/index',
'/niche.php?slug=<slug>' => '/videos?niche=<slug>',
),
),
the first rule works fine, second one however, i can't quite figure out how to write properly. Any suggestions will be highly appreciated. Thanks!
If I understand correctly, you want a kind of redirecting...
Here is a possible solution: