no input file specified

no input file specified(apache)

 

apache No input filespecified,今天是我们配置apache RewriteRule时出现这种问题,解决办法很简单如下:


打开.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>

 

posted @ 2018-12-26 19:45  tatasix  阅读(205)  评论(0编辑  收藏  举报