gpt4 book ai didi

apache - .htaccess:无效命令 'RewriteEngine' ,可能拼写错误或由服务器配置中未包含的模块定义

转载 作者:行者123 更新时间:2023-12-03 04:02:11 33 4
gpt4 key购买 nike

尝试本地浏览 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/

问题是什么?

最佳答案

Apache 2+您可以简单地执行以下操作(使用 Linux 终端):

sudo a2enmod rewrite && sudo service apache2 restart

sudo a2enmod rewrite && sudo /etc/init.d/apache2 restart

关于apache - .htaccess:无效命令 'RewriteEngine' ,可能拼写错误或由服务器配置中未包含的模块定义,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10144634/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com