【PHP】Thinkphp3.1.3 No input file specified

项目环境:windows10 + Apache + Thinkphp3.1.3 + PHP5.6.27 NTS

本地项目报错 No input file specified.
【PHP】Thinkphp3.1.3 No input file specified_第1张图片
解决办法:将.htaccess文件



RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_FILENAME} !-f

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


修改为



RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_FILENAME} !-f

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


你可能感兴趣的:(php,apache,开发语言)