1.修改 /application/config.php// 是否开启路由
'url_route_on' => true,
// 是否强制使用路由
'url_route_must' => false,
2.修改 /application/route.phpreturn [
//文章URL
'articles/artid/:artid' => ['Index/article/index',['artid' => 'id']],
//栏目URL
'cateogrys/cateid/:cateid' => ['Index/cateogry/index',['cateid' => 'id']],
//留言板URL
'gues/cateid/:cateid' => ['Index/gues/index',['cateid' => 'id']],
];
3.修改对应链接地址//文章内容页链接
{:url('/Articles',array('artid'=>$vo['id']))}
//栏目分类页链接
{:url('/Cateogry',array('cateid'=>$cates['id']))}
//留言板页链接
{:url('/Gues',array('cateid'=>$gues['id']))}