码迷,mamicode.com
首页 > 其他好文 > 详细

Dreamhost 提示No input file specified. 的解决的方法

时间:2017-04-22 14:45:23      阅读:207      评论:0      收藏:0      [点我收藏+]

标签:san   spec   gravity   inf   thinkphp   cond   .net   ica   filename   

技术分享

假设开启FastCGI模式,.htaccess无法生效,一直提示no input file specified。
由于在Fastcgi模式下。php不支持rewrite的目标网址的PATH_INFO的解析 
ThinkPHP执行在URL_MODEL=2时。会出现 No input file specified.的情况, 
这时能够改动站点文件夹的.htaccess文件:(by default7#zbphp.com)
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] 
改为 RewriteRule ^(.*)$ index.php?s=$1 [QSA,PT,L] 
.htaccess的内容为: 
    RewriteEngine on 
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteRule ^(.*)$ index.php?

s=$1 [QSA,PT,L]

Dreamhost 提示No input file specified. 的解决的方法

标签:san   spec   gravity   inf   thinkphp   cond   .net   ica   filename   

原文地址:http://www.cnblogs.com/wzjhoutai/p/6747512.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!