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新人一枚,请军哥指点。 那看一下你的HTACCESS里面写的是什么? 如上所述,空的.htaccess也不行。 看起来像是rewrite_module没有加载,从错误日志里可以看到
perhaps misspelled or defined by a module not included in the server configuration
错误日志。
但是在phpinfo文件里可以看到mod_rewrite模块已启用。 解决了。
.htaccess文件bom信息引起的错误。
页:
[1]