登陆

奇怪的404错误,明明路径没有问题

网站根目录文件如下图:

1.png

网站域名设置为me,访问http://me/10.png、http://me/jj.html文件都没有问题,可以直接打开。直接访问http://me/可以打开首页。

但其他php文件,比如 http://me/test.php   就都报错如下:

Not Found

The 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 16:11:521743 次浏览

全部回复(2)我要回复

  • 刘泽东

    刘泽东2020-08-16 18:49:25

    唉,真是无语,找到原因了。

    是自己的PHP页面里有一个判断跳转,然后因为换目录了,跳转的那个页找不到了,所以报了404.

    刚装了PHPSTUDY,一直在这上面找原因。

    回复
    0
  • 蝈蝈

    我也有这个问题,你最后是怎么解决的?

    蝈蝈 · 2021-06-22 13:34:18
  • 取消回复发送