[ Apache ]

  • httpd.conf配置文件中加载了mod_rewrite.so模块

php入口文件隐藏出现no input file specified解决方法

php入口文件隐藏出现no input file specified解决方法

  • AllowOverride NoneNone改为 All

php入口文件隐藏出现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>

还是不行,在上面代码中的index.php后加?

就解决了。

参考官方文档:https://www.kancloud.cn/manual/thinkphp5_1/353955

 

相关文章: