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

将以下内容复制粘贴到.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>

修改后重启apache

你可能感兴趣的:(php)