Invalid command 'RewriteEngine'解决办法

时间:2023年06月17日

/

来源:网络

/

编辑:佚名

今天使用 CodeIgniter的时候出现了HTTP 500错误,查看日志发现以下错误
CodeIgniter_2.0.2/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
apache error.log 中出现如下错误:
Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
解决办法:
RewriteEngine命令需要rewrite mod的支持,
打开Apache的配置文件httpd.conf ,取消 LoadModule rewrite_module modules/mod_rewrite.so前的注释
猜你需要

豫ICP备2021026617号-1  豫公网安备:41172602000185   Copyright © 2021-2028 www.78moban.com/ All Rights Reserved

本站作品均来自互联网,转载目的在于传递更多信息,并不代表本站赞同其观点和对其真实性负责。如有侵犯您的版权,请联系 1565229909#qq.com(把#改成@),我们将立即处理。