首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > PHP >

PHP:Invalid command RewriteEngine解决方法

2013-01-18 
PHP:Invalid command RewriteEngine解决办法今天使用 CodeIgniter的时候出现了HTTP 500错误,查看日志发现

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

热点排行