Why does index.html have priority over index.php?

后端 未结 5 555
被撕碎了的回忆
被撕碎了的回忆 2020-11-30 05:48

I have a website on a server. The homepage is example.com/index.php .

OK, I uploaded an index.html named file to the server (the root dir) and when I typed in my sit

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-30 06:19

    The biggest issue, as with all types of development, is maintenance. If you decide to change technology then by exposing the file extension you are setting yourself up for a lot of work - not to mention the security aspects of broadcasting your choice. The best situation is to avoid exposing extensions by using url rewriting.

提交回复
热议问题