Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/powerbi/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wordpress 赋予index.html高于index.php的优先级_Wordpress_Indexing - Fatal编程技术网

Wordpress 赋予index.html高于index.php的优先级

Wordpress 赋予index.html高于index.php的优先级,wordpress,indexing,Wordpress,Indexing,我有一个wordpress网站。现在索引页面是index.php 问题是我不希望服务器使用index.php作为默认值,而是使用index.html 在wordpress站点准备就绪之前,index.html只是一个临时页面(正在构建中) 目前,域优先于index.php——如何将其分配给index.html 注意:我的根目录中没有htaccess文件。。。。 我相信您是在那里指定的?制作一个包含“DirectoryIndex.html”(无qoutes)的.htaccess文件。这取决于您的服

我有一个wordpress网站。现在索引页面是index.php

问题是我不希望服务器使用index.php作为默认值,而是使用index.html

在wordpress站点准备就绪之前,index.html只是一个临时页面(正在构建中)

目前,域优先于index.php——如何将其分配给index.html

注意:我的根目录中没有htaccess文件。。。。
我相信您是在那里指定的?

制作一个包含“DirectoryIndex.html”(无qoutes)的.htaccess文件。

这取决于您的服务器配置,目前您可能无法访问某些.htaccess文件。您可以在自己的htaccess中定义/否决此项,例如:

DirectoryIndex index.html index.php
优先级取决于您在该行中设置文件名的顺序