使用redirect方法跳转URL生成错误,代码为
define('APP_DEBUG',false);$this->redirect('/Home/Index/link',[],1,'it will go to the link page.');但是生成的URL后缀为"index.php/home/index/li
nk.html",即首字母变成了小写,
导致403访问错误。
环境为Linux 3.10.0-123.9.3.el7.x86_64,nginx 1.7.9,php 5.5.7,thinkphp3.2.3
但是APP_DEBUG为true时生成的链接是正确的,即首字母大写。