在像CentOS这样的其他Linux中,它可以工作,但我没有让它在Ubuntu 11.04中运行.

/var/www/html/folder/public/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration

解决方法:

你确定RewriteEngine打开了吗?

您需要验证mod是否已启用 – 只需在/ etc / apache2 / mods-enabled中查找rewrite.load符号链接.如果没有,请运行sudo a2enmod rewrite以启用它.使用sudo service apache2 restart重新启动apache并提供你的.htaccess语法是正确的,这将起作用.


否则,您需要粘贴有关.htaccess文件的更多信息.

标签: php, mysql, apache2

相关文章推荐

添加新评论,含*的栏目为必填