On the index.php problem under the root directory of the website

I use phpstudy,. I set the root directory of my website to www/test and www/test/. Now I build three files under test. Index.php,index.html,1.php, accesses index.php,index.html,1.php normally when my root directory is www/test, so the problem is that when I am www/test/, both index.html and 1.php are normal, but when I visit index.php, I access index.html, by default. Ask for God"s guidance!

Mar.05,2021

you have to configure apache or nginx

Menu