PHP编程

PHP:Invalid command RewriteEngine解决办法

日期:2015/6/28来源: IT猫扑网

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

相关文章

相关下载

网友评论

我要评论...
    没有更早的评论了
    取消