访问tp3.2的项目时出现No input file specified.的解决办法

Posted 煜叔

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了访问tp3.2的项目时出现No input file specified.的解决办法相关的知识,希望对你有一定的参考价值。

解决办法很简单如下:

打开.htaccess 在RewriteRule 后面的index.php教程后面添加一个“?”

原来的代码如下

<IfModule mod_rewrite.c>
  Options +FollowSymlinks
  RewriteEngine On

  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>

 

修改之后的代码如下

<IfModule mod_rewrite.c>
  Options +FollowSymlinks
  RewriteEngine On

  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>

完美地解决了问题

以上是关于访问tp3.2的项目时出现No input file specified.的解决办法的主要内容,如果未能解决你的问题,请参考以下文章