Wordpress 赋予index.html高于index.php的优先级
我有一个wordpress网站。现在索引页面是index.php 问题是我不希望服务器使用index.php作为默认值,而是使用index.html 在wordpress站点准备就绪之前,index.html只是一个临时页面(正在构建中) 目前,域优先于index.php——如何将其分配给index.html 注意:我的根目录中没有htaccess文件。。。。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文件。这取决于您的服
我相信您是在那里指定的?制作一个包含“DirectoryIndex.html”(无qoutes)的.htaccess文件。这取决于您的服务器配置,目前您可能无法访问某些.htaccess文件。您可以在自己的htaccess中定义/否决此项,例如:
DirectoryIndex index.html index.php
优先级取决于您在该行中设置文件名的顺序