.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
提交
取消