今天使用 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前的注释