Route::group(['name'=>'cms','ext'=>'html'], [
'show-<id>' =>['cms/content/show',['method'=>'get'],['id' => '\d+']],
'list-<fid>'=>['cms/content/index',['method'=>'get'],['fid' => '\d+']],
'mid-<mid>'=>['cms/content/index',['method'=>'get'],['mid' => '\d+']],
'show' => 'cms/content/show',
'list' => 'cms/content/index',
'index$' => 'cms/index/index',
]);
换成:
Route::group(['name'=>'/','ext'=>'html'], [
'show-<id>' =>['cms/content/show',['method'=>'get'],['id' => '\d+']],
'list-<fid>'=>['cms/content/index',['method'=>'get'],['fid' => '\d+']],
'mid-<mid>'=>['cms/content/index',['method'=>'get'],['mid' => '\d+']],
'show' => 'cms/content/show',
'list' => 'cms/content/index',
'index$' => 'cms/index/index',
]);
执行的是:/index.php/show-13.html 如何直接访问http://x1.php168.com/show-13.html 这样的地址呢,请高手指点,谢谢