网站根目录文件如下图:
网站域名设置为me,访问http://me/10.png、http://me/jj.html文件都没有问题,可以直接打开。直接访问http://me/可以打开首页。
但其他php文件,比如 http://me/test.php 就都报错如下:
Not FoundThe requested URL /mess/index.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
求助
刘泽东2020-08-16 18:49:25
唉,真是无语,找到原因了。
是自己的PHP页面里有一个判断跳转,然后因为换目录了,跳转的那个页找不到了,所以报了404.
刚装了PHPSTUDY,一直在这上面找原因。