码迷,mamicode.com
首页 > Web开发 > 详细

【每日学习】Apache重写未开启,导致The requested URL /xxxx.html was not found on this server

时间:2016-09-14 18:59:11      阅读:230      评论:0      收藏:0      [点我收藏+]

标签:

今天把项目环境从集成换成独立的,全部搭建好后,网站主页www.xxx.com能打开,但一涉及到跳转,带参数,比如 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重写未开启,导致The requested URL /xxxx.html was not found on this server

标签:

原文地址:http://www.cnblogs.com/jesu/p/5873041.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!