错误信息。
[Wed Nov 05 23:57:10 2014] [alert] [client 127.0.0.1] .../wamp/www/.../.htaccess: Invalid command ‘RewriteEngine‘, perhaps misspelled or defined by a module not included in the server configuration.
RewriteEngine命令需要rewrite mod的支持,
$>cd /etc/apache2/mods-enabled 切换到apache下的mods-enabled目录
$>sudo ln -s ../mods-available/rewrite.load rewrite.load 启用rewrite mod
$>sudo /etc/init.d/apache2 restart 重启apache服务器。
或者在apache的配置文件httpd.conf中将#LoadModule rewrite_module modules/mod_rewrite.so前的#去掉,再重启服务器。
apache下/.htaccess: Invalid command 'RewriteEngine'错误信息如何解决。
原文地址:http://xiourui.blog.51cto.com/7555557/1572761