在windows服务器环境下,可以define (‘SITE_URL‘,‘http://192.168.1.101/‘);
但上传到linux服务器环境下不能正常解析,可使用相对路径:define (‘SITE_URL‘,‘/‘);
JS页面跳转功能:
setTimeout("location.href=‘{:U(‘Home/Index/index‘)}‘",3000);
尽量使用U函数生成跳转地址
ThinkPHP3.2.3--Linux服务器首页文件index.php路径配置问题
原文:http://www.cnblogs.com/xtmp/p/5789562.html