这样的路由规则应该怎么写?一条路由能否都匹配?

浏览:384 发布日期:2017/03/18 分类:ThinkPHP5专区 关键字: tp5 路由
主站:http://aaa.com/web/index/index 转成 http://aaa.com/index.html
http://aaa.com/web/index/index?path=news 转成 http://aaa.com/news/
http://aaa.com/web/index/index?path=news/guoji 转成 http://aaa.com/news/guoji/
http://aaa.com/web/index/index?path=news/guoji&id=1 转成 http://aaa.com/news/guoji/1.html
地区站:http://aaa.com/web/index/index?area=bj 转成 http://aaa.com/bj/
http://aaa.com/web/index/index?area=bj&path=news 转成 http://aaa.com/bj/news/
http://aaa.com/web/index/index?area=bj&path=news/guoji 转成 http://aaa.com/bj/news/guoji/
http://aaa.com/web/index/index?area=bj&path=news/guoji&id=2 转成 http://aaa.com/bj/news/guoji/2.html
最佳答案
评论() 相关
后面还有条评论,点击查看>>