路由后缀解析问题

浏览:632 发布日期:2018/04/11 分类:ThinkPHP5专区
在route.php中配置路由路径做html必须输入限定,例如:

'hellow/[:name]' => ['index/hellow', ['ext' => 'html']],

浏览器访问时
http://localhost/thinkphp5/hellow/1.h
http://localhost/thinkphp5/hellow/1.t
http://localhost/thinkphp5/hellow/1.m
http://localhost/thinkphp5/hellow/1.l
http://localhost/thinkphp5/hellow/1.ht
http://localhost/thinkphp5/hellow/1.htm
http://localhost/thinkphp5/hellow/1.html
均能正常访问,不懂为什么会这样,求解答
最佳答案
评论( 相关
后面还有条评论,点击查看>>