kavin

apache服务器出现No input file specified.解决方案

kavin apache 2018-05-10 2744浏览 0

 

APACHE服务器出现No input file specified.解决方案 thinkcmf程序默认的.htaccess里面的规则:

 

<IfModule mod_rewrite.c>
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>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>

就是正则结果“/$1”前面多加了一个“?”号。


继续浏览有关 insmodapache 的文章
发表评论