我使用XAMP在localhost上进行开发,现在我已经完成了站点的开发,它不能在输出webhost上工作。我想是因为没有安装mod_rewrite。我想知道如何在cent os 6.5上安装mod rewrite。
我在互联网上读到,我应该更改文档根指令,使其包含“AllowOverwride All”。仍然没有迹象表明我的mod重写正在工作,我仍然收到Not Found错误,因为重写没有发生。请多多指教!
发布于 2015-08-22 05:19:03
a2enmod rewrite是shell命令。
您应该重新启动Apache,然后使用service apache2 restart。
请注意,您应该有一个适当的.htaccess文件来使用它。
https://stackoverflow.com/questions/32149091
复制相似问题