apache配置伪静态隐藏index.php文件
no input file specified错误解决办法:
在网站根目录建.htaccess文件
方法一:
在RewriteRule后面的index.php之后加?
<IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L] </IfModule>
方法二:
在php.ini中找到
;cgi.force_redirect = 1
去掉前面的分号并且把后面的1改为0
声明:该文观点仅代表作者本人,牛骨文系教育信息发布平台,牛骨文仅提供信息存储空间服务。
- 上一篇: Apache2.4开启Rewrite模块
- 下一篇: Apache重写去除入口文件index.php