nginx下No input file specified错误的解决

Posted 程序小工

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了nginx下No input file specified错误的解决相关的知识,希望对你有一定的参考价值。

在web服务的根目录下创建 .htaccess文件,设置一下内容:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index.php?s=$1 [QSA,PT,L]

此时刷新即可正常访问!

以上是关于nginx下No input file specified错误的解决的主要内容,如果未能解决你的问题,请参考以下文章