0

我的路线文件中有以下内容:

$route['logout']                = 'admin/logout';
$route['res_yass']              = 'page/index/res_yass';
$route['res_nesr']              = 'page/index/res_nesr';
$route['societe']               = 'page/index/societe';
$route['app_type']              = 'page/index/app_type';
$route['future_plan_situation'] = 'page/index/future_plan_situation';
$route['plan_situation']        = 'page/index/plan_situation';
$route['fini_stand']            = 'page/index/fini_stand';
$route['future_app_type']       = 'page/index/future_app_type';

现在工作正常,但每当我想添加一个页面时,我必须将它添加到路由页面中,这不是一个好主意。那么除了注销之外,我如何在 htaccess 文件中更改它。提前谢谢。

4

1 回答 1

2

尝试这个

$route['(:any)'] = "page/index/$1";
$route['logout'] = 'admin/logout';
于 2012-12-06T09:17:04.550 回答