【问题标题】:How to link to a wordpress blog from a static page in a single host computer?如何从单个主机中的静态页面链接到 wordpress 博客?
【发布时间】:2013-09-07 19:54:04
【问题描述】:

我有一个完全是 html 的介绍页面和一个基于 Wordpress 的博客。我的目标是从静态页面链接我的日志,反之亦然。是否可以通过相互链接将这两个页面托管在一个主机中。如果是,如何?

【问题讨论】:

    标签: html wordpress hosting


    【解决方案1】:

    是的;如果您使用的是 Apache,您可以使用 .htaccess 设置默认提供的 html 页面:

    DirectoryIndex index.html index.php
    

    将确保在 Wordpress 的 index.php 之前读取 html 文件。在 html 文件中您可以添加一个简单的链接,在 WP 中您可以使用自定义菜单添加任意 URL,这将使您能够链接回介绍页面。

    【讨论】:

      猜你喜欢
      • 2013-09-22
      • 2021-07-06
      • 1970-01-01
      • 1970-01-01
      • 2021-11-21
      • 2015-07-02
      • 1970-01-01
      • 1970-01-01
      • 2016-09-12
      相关资源
      最近更新 更多