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

后端 未结 5 528
被撕碎了的回忆
被撕碎了的回忆 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:34

    I know this is old and has been accepted but I want to add to this in case someone else has this problem.

    I came here when looking for a solution to the same problem. Entering the Wordpress "index.php" into the URL got redirected to "index.html". It had nothing to do with the .htaccess. I finally found the solution in their forum. Wordpress modified the program a couple years ago to strip "index.php" from URLs. So then of course it goes to your default (usually index.html).

    To make it behave as you expect, you need to revert the change here: changeset 9203. See Forum topic

提交回复
热议问题