Php yii框架下的url管理流程

Php yii框架下的url管理流程,php,yii,bootstrapping,Php,Yii,Bootstrapping,我已经使用Yii框架实现了这个项目。URL管理器工作正常,但是。我需要更改URL文本。可以在类别名称后显示域名。ie我的项目URL是kitchenking.com。在域名之后应该显示我的类别名称 ie kitchenking.com/感恩节。但我的项目url显示如下所示: http://kitchenking.com/recipe/index1/name/Thanksgiving 我的配置文件如下所示。请告诉我哪里需要更改代码 'Home'=>'site/index',

我已经使用Yii框架实现了这个项目。URL管理器工作正常,但是。我需要更改URL文本。可以在类别名称后显示域名。ie我的项目URL是kitchenking.com。在域名之后应该显示我的类别名称

ie kitchenking.com/感恩节。但我的项目url显示如下所示:

http://kitchenking.com/recipe/index1/name/Thanksgiving
我的配置文件如下所示。请告诉我哪里需要更改代码

'Home'=>'site/index',
            //'cuisine'=>'recipe/index3',

                            'cuisine/<name:\w+>/<id:\d+>/'=>'recipe/index3',
            'holidays/<name:\w+>/<id:\d+>/'=>'recipe/index1',
            'calories/<name:\w+>/<id:\d+>/'=>'recipe/index2',
          'recipeshow/<name:\w+>/<id:\d+>/'=>'recipe/recipeshow',                                
            //'recipeshow'=>'recipe/recipeshow',
            'recipeshow/<name:\w+>/<id:\d+>/'=>'index.php/recipe/course',  
“主页”=>“站点/索引”,
//“烹饪”=>“食谱/索引3”,
“烹饪//”=>“食谱/索引3”,
“假日//”=>“配方/索引1”,
“卡路里//”=>“配方/index2”,
“recipeshow//”=>“recipe/recipeshow”,
//“菜谱展示”=>“菜谱/菜谱展示”,
'recipeshow/'=>'index.php/recipe/course',
以上代码。我想变成这样。菜谱/index3代替烹饪,
配方/index2代替节假日,在UrlManager中修改规则如下:-

'urlManager' => array(
    'rules' => array(
        'cuisine' => 'recipe/index3',
        'holidays' => 'recipe/index3',
    )
)