首页 > 代码库 > apache下/.htaccess: Invalid command 'RewriteEngine'错误信息如何解决。
apache下/.htaccess: Invalid command 'RewriteEngine'错误信息如何解决。
错误信息。
[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'错误信息如何解决。
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。