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

版权声明:阿西莫多 https://blog.csdn.net/yang_yun_hao/article/details/81458343

当你访问项目域名下某个地址时出现以下错误

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>

然后完美解决!

猜你喜欢

转载自blog.csdn.net/yang_yun_hao/article/details/81458343