apache环境下 tp框架 在输入url后出现 No input file specified 解决方法

解决方案:

在入口文件下修改.htaccess文件

(入口文件是指index.php所在目录的.htaccess)

 原:

RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]

修改成
RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]

猜你喜欢

转载自www.cnblogs.com/kevinggk/p/8984029.html