红联Linux门户
Linux帮助

Invalid command ‘RewriteEngine’ ubuntu解决报错

发布时间:2016-03-11 09:57:50来源:linux网站作者:wide288

提示错误:

Invalid command ‘RewriteEngine’

current/public/.htaccess: Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the server configuration


这个原因是没有加载mod_rewrite, Apache

不知道 RewriteEngine是什么?

他是URL路由引擎差不多吧。伪静态配置。


在ubunut上解决方法:

安装

a2enmod rewrite

重启:
apache2ctl restart


本文永久更新地址:http://www.linuxdiyf.com/linux/18810.html