当Apache服务器出现No input file specified时候,该如何解决呢?
答案在htaccess文件中的设置。那么htaccess该如何写呢?
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>
其中 RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]这句中在index.php后面多了一个问号?
加上这个问号,就可以了。