CI当开启URL重写的时候,报错500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

解决方法:

apache服务器没有开启URL重写模块,将注释去掉

在apache配置上,注意httpd.conf文件里:

//开启rewrite

LoadModule rewrite_module modules/mod_rewrite.so

 

LINUX下的xampp中的apache配置文件目录地址:

/opt/lampp/etc/httpd.conf Apache 配制文件。

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。