【配置环境】出现 Not Found The requested URL was not found on this server. 解决方案

搭建开发环境访问出现如下:

【配置环境】出现 Not Found The requested URL was not found on this server. 解决方案_第1张图片

出现了重定向的问题,大概率是apache的配置问题:

1、对apache配置文件httpd.conf进行修改

AllowOverride None
Require all granted

将以上两行注释掉,修改为如下

Options Indexes FollowSymLinks
AllowOverride All

示例:

【配置环境】出现 Not Found The requested URL was not found on this server. 解决方案_第2张图片

2、找到apache配置文件httpd.conf配置并开启

LoadModule rewrite_module modules/mod_rewrite.so

示例:

你可能感兴趣的:(DevOps,php,php)