【问题标题】:Which file is processed first, wordpress index.php or index.html? [duplicate]首先处理哪个文件,wordpress index.php 还是 index.html? [复制]
【发布时间】:2018-12-02 07:16:51
【问题描述】:

我正在使用 LiteSpeed Web 服务器和 wordpress。我想知道先处理哪个文件,wordpress index.php 还是 index.html?因为我想显示即将推出(index.html),直到我完成我的 wordpress 网站。

感谢和最好的问候

【问题讨论】:

  • 检查this链接。

标签: wordpress indexing litespeed


【解决方案1】:

你可以使用一个有用的正在建设的插件

https://wordpress.org/plugins/under-construction-page/

作为 stackoverflow.com 上的上一个问题

答案是。

检查一下 https://stackoverflow.com/a/7873648/5441049

这实际上取决于您使用的服务器。这是配置问题。这并不是说使用 html 与 php 文件类型有任何优势。

您可以说 .html 变体优先,因为它是最基本的网络格式。

如果您使用的是 Apache,只需检查默认的 .htaccess 设置:

DirectoryIndex index.html index.shtml index.php index.htm default.html Default.htm default.html Default.html default.shtml Default.shtml page1.html index.pl index.cgi index.php3 index.phtml home.htm home.html home.shtml index.wml

您可以对其进行编辑,使其符合您的需求。

【讨论】:

  • 我正在使用 Lite Speed 服务器和共享热源
猜你喜欢
  • 2022-11-02
  • 2014-03-06
  • 1970-01-01
  • 1970-01-01
  • 2023-03-21
  • 1970-01-01
  • 1970-01-01
  • 2022-09-23
  • 2011-12-13
相关资源
最近更新 更多