例如,我有URI /index.php/system/index/page/5,是否可以重新路由它看起来像index.php/page/5
发布于 2013-03-01 22:08:26
是的,您可以在application/config/routes.php中执行此操作。你会这么做的
$route['page/5'] = "system/index/page/5";如果您要多次使用相同的url结构,例如
/index.php/system/index/page/1
/index.php/system/index/page/2
/index.php/system/index/page/3然后你可以这样做
$route['page/(:num)'] = "system/index/page/$1";https://stackoverflow.com/questions/15159490
复制相似问题