美文网首页
Aache站点报错The requested URL /inde

Aache站点报错The requested URL /inde

作者: 寒冬夜行人_51a4 | 来源:发表于2018-07-09 18:13 被阅读0次

    报错信息:

    The requested URL /index was not found on this server.

    Apache重写未开启,导致The requested URL /xxxx.html was not found on this server

    今天把项目环境从集成换成独立的,全部搭建好后,网站主页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

    去掉前面的#号

    找到

    Options Indexes FollowSymLinks

    AllowOverride None =>改为 AllowOverride All

    Order allow,deny

    Allow from all

    然后完美解决!

    相关文章

      网友评论

          本文标题:Aache站点报错The requested URL /inde

          本文链接:https://www.haomeiwen.com/subject/upbtpftx.html