php - localhost shows 404
怪我咯
怪我咯 2017-05-16 13:04:58
0
2
827

Direct localhost displays 404, but localhost/test.php can open the file. What's going on?
I searched on Baidu and said I should comment out this sentence. I commented it out and restarted it, but it still didn’t work. I used wamp

#Include conf/extra/httpd-vhosts.conf
怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(2)
世界只因有你

The root directory of the website is generally the www directory. Does it have files such as index.{html, php, htm}? By default, localhost accesses files such as index.{html, php, htm}. If not, a 404 error will be generated, but specify Localhost/test.php will access the specified file.

世界只因有你

You haven’t configured a default page, such as index.php

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template