天天看点

wamp下codeigniter报500错误的问题

检查apache的错误日志:

C:/wamp/www/ci/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration, referer: http://127.0.0.1/

发现是apache的mod_rewrite模块没有启动。

启动方法:

在apache文件夹下的httpd.conf中找到LoadModule rewrite_module modules/mod_rewrite.so这一行,把它前面的‘#‘删掉。如果没找到这一行,直接拷贝过去即可。

重启wamp服务,发现ci的界面可以显示了。