PHP 500 -Invalid command RewriteEngine的解决

环境:   wampserver  

系统 :  win7

错误 :  500 -Invalid command RewriteEngine

日志 : [Tue Nov 20 22:52:24 2012] [alert] [client 127.0.0.1] D:/wamp/www/.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前的注释

posted @ 2015-03-02 14:11  Xavier小灰  阅读(143)  评论(0编辑  收藏  举报