浏览器显示The requested URL *** was not found on this server

ⅰ亾dé卋堺 提交于 2019-12-01 09:11:43

今天帮人家配项目环境,全部搭建好后,比如 www.xxx.com/xxx/xxx.html 就会报错

The requested URL /xxxx.html was not found on this server

因为是新搭建的环境,apache的重写未开启,开启重写后,问题解决,方法如下:

apache 打开 httpd.conf 文件 找到

#LoadModule rewrite_module modules/mod_rewrite.so

去掉前面的

找到

<Directory "E:/online/webs/Apache24/htdocs">

Options Indexes FollowSymLinks

AllowOverride None =>改为 AllowOverride All

Order allow,deny

Allow from all

</Directory>

然后完美解决!

同时注意Apache配置虚拟主机httpd-vhosts.conf问题我的另一篇文章可以学习

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!