把项目文件删除后,重新访问出现以下页面

apacheNo input file specified
apache No input filespecified,今天是我们配置apache RewriteRule时出现这种问题,解决办法很简单如下
打开.htaccess 在RewriteRule 后面的index.php教程后面添加一个“?”
完整代码如下
.htaccess
RewriteEngine on
RewriteCond $1 !^(index.php|images|robots.txt)
RewriteRule ^(.*)$ /index.php?/$1 [L]
如果是apache服务器出问题,看看是不是的Apache 把 .php 后缀的文件解析哪里有问题了。

当删除项目文件后重新访问Apache服务器时遇到'No input file specified'错误。解决方法是在.htaccess文件的RewriteRule中,在index.php后面添加问号。修正后的代码显示为:RewriteRule ^(.*)$ /index.php?/$1 [L]。如果问题仍然存在,可能需要检查Apache服务器对.php文件的解析设置。
2493

被折叠的 条评论
为什么被折叠?



