PHP 500 -Invalid command RewriteEngine的解决

转自:http://blog.csdn.net/wang02011/article/details/8205903

环境:   wampserver-2.1a    

系统 :  win8

错误 :  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 @ 2014-09-21 22:35  KoMiles  阅读(731)  评论(0编辑  收藏  举报