Thinkphp3.2.3 No input file specified 的解决方法
2017-02-06 11:51
519 查看
因为在Fastcgi模式下,php不支持rewrite的目标网址的PATH_INFO的解析ThinkPHP运行在URL_MODEL=2时,会出现 No input file specified.的情况,这时可以修改网站目录的.htaccess文件:
原代码为:
“No input file specified.”,是没有得到有效的文件路径造成的。
修改伪静态规则,如下:
原代码为:
<IfModule mod_rewrite.c> Options +FollowSymlinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] </IfModule>
“No input file specified.”,是没有得到有效的文件路径造成的。
修改伪静态规则,如下:
<IfModule mod_rewrite.c> Options +FollowSymlinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?s=$1 [QSA,PT,L] </IfModule>
相关文章推荐
- Thinkphp3.2.3 No input file specified 的解决方法
- Thinkphp3.2.3 No input file specified 的解决方法
- Thinkphp3.2.3 No input file specified 的解决方法
- ThinkPHP3.2.3的URL重写时遇到No input file specified的解决方法,htaccess规则问题
- Thinkphp3.2.3 No input file specified 的解决方法
- Thinkphp3.2.3 No input file specified 的解决方法
- ThinkPHP3.2.3的URL重写时遇到No input file specified的解决方法
- ThinkPHP3.2.3的URL重写时遇到No input file specified的解决方法,htaccess规则问题
- Thinkphp3.2.3 No input file specified 的解决方法
- Thinkphp3.2.3 No input file specified 的解决方法
- Thinkphp3.2.3 No input file specified 的解决方法
- ThinkPHP的URL重写时遇到No input file specified的解决方法
- ThinkPHP 的URL重写时遇到No input file specified的解决方法
- thinkphp在Nginx下使用PATHINFO模式显示no input file specified的解决方法
- ThinkPHP的URL重写时遇到No input file specified的解决方法
- ThinkPHP的URL重写时遇到No input file specified的解决方法
- thinkphp配置rewrite模式访问时不生效 出现No input file specified解决方法
- ThinkPHP隐藏index.php出现No input file specified的解决方法
- 针对thinkphp中"no input file specified"的解决方法
- thinkphp No input file specified的解决方法