0
点赞
收藏
分享

微信扫一扫

某高校的毕设

大明宫 2023-10-03 阅读 32

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”前面多加了一个“?”号。。

举报

相关推荐

JavaWeb毕设

【毕设笔记】PCL

毕设艰辛历程

毕设学习笔记

【毕设Day1】

【毕设Day2】

【毕设Day4】

0 条评论