url优化

浏览:193 发布日期:2020/07/28 分类:ThinkPHP5专区
路由定义
Route::get('pages/:cid','index/page/index'); //图片页
//格式http://www.hb-bf.com/pages/1.html
Route::get('cates/:cid','index/cate/index');//列表页
//格式http://www.hb-bf.com/'cates/8.html
Route::get('art/:aid','Article/index'); //内容页
//格式http://www.hb-bf.com/'art/100.html
最佳答案
评论( 相关
后面还有条评论,点击查看>>