alide 发表于 2011-10-1 22:59:52

lnmpa只要放置.htaccess文件,所有php页面都无法访问

之前以为是规则问题,后面把htaccess文件内容全部清空,放到根目录还是会出错。

Server error!The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.
If you think this is a server error, please contact the webmaster.

删除.htaccess文件php正常访问。

lnmpa新人一枚,请军哥指点。

yuweitaocn 发表于 2011-10-1 23:59:41

那看一下你的HTACCESS里面写的是什么?

alide 发表于 2011-10-2 00:23:38

如上所述,空的.htaccess也不行。

alide 发表于 2011-10-2 00:46:59

看起来像是rewrite_module没有加载,从错误日志里可以看到
perhaps misspelled or defined by a module not included in the server configuration
错误日志。
但是在phpinfo文件里可以看到mod_rewrite模块已启用。

alide 发表于 2011-10-2 11:11:58

解决了。
.htaccess文件bom信息引起的错误。
页: [1]
查看完整版本: lnmpa只要放置.htaccess文件,所有php页面都无法访问