为什么访问不存在的网站目录也能有内容显示出来

测试服务器用的wamp3.0.(a2.4.17,p5.6.15,m5.7.9)

真实的网址是"http://localhost/aaa.php"

可以访问到这个文件的网址是"http://localhost/aaa/"(这里的目录其实是不存在的),"http://localhost/aaa?aaa=111".

真实的网址是"http://localhost/aaa.html"

可以访问到这个文件的网址是"http://localhost/aaa"(这里最后加了斜杠的话会访问不了),"http://localhost/aaa?aaa=111".

 

posted @ 2017-06-15 23:54  viof7852  阅读(367)  评论(0编辑  收藏  举报