.htaccess:无效的命令'RewriteEngine',可能是由服务器配置中未包含的模块拼写错误或定义的尝试在本地浏览php文件时出现此错误[Fri Apr 13 19:16:40 2012] [alert] [client 127.0.0.1] C:/AppServ/www/hr-website/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration, referer: http://127.0.0.1/问题是什么 ?
3 回答
慕姐4208626
TA贡献1852条经验 获得超7个赞
在Apache 2+下,您可以简单地执行以下操作(使用Linux终端):
sudo a2enmod rewrite && sudo service apache2 restart
要么
sudo a2enmod rewrite && sudo /etc/init.d/apache2 restart
添加回答
举报
0/150
提交
取消