Invalid command ‘RewriteEngine’ ubuntu 解决报错。

来源:互联网 发布:淘宝排行榜如何设置 编辑:程序博客网 时间:2024/06/04 18:59

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
原创粉丝点击