DirectoryIndex:priorityindex.html,但index.php也应该工作

DirectoryIndex:priorityindex.html,但index.php也应该工作,php,wordpress,.htaccess,Php,Wordpress,.htaccess,我有一个WordPress安装,我现在想在上面工作。访问者在访问站点时应该只看到一个静态index.html,但我仍然会在浏览器中输入domain.com/index.php,正常的WP站点应该加载 我已将.htaccess更改为: DirectoryIndex index.html index.php 但是现在index.html总是被加载,即使我在浏览器中键入domain.com/index.php。如何将index.html设置为默认值,但仍然可以访问index.php 谢谢。当您键入d

我有一个WordPress安装,我现在想在上面工作。访问者在访问站点时应该只看到一个静态index.html,但我仍然会在浏览器中输入domain.com/index.php,正常的WP站点应该加载

我已将.htaccess更改为:

DirectoryIndex index.html index.php
但是现在index.html总是被加载,即使我在浏览器中键入domain.com/index.php。如何将index.html设置为默认值,但仍然可以访问index.php


谢谢。

当您键入domain.com/index/.php时,页面加载后index.php将从url中删除?重复?当您键入domain.com/index/.php时,页面加载后index.php将从url中删除?重复?