首页 > 解决方案 > 如何从 firebase 托管子目录指向 Wordpress 博客

问题描述

我们正在使用 firebase 来托管我们的 react js 应用程序。

此外,我们有一个 WordPress 博客,托管在 Siteground 上。

我们需要从[Domain]/blog

Firebase 提供托管配置对象,您可以使用重写规则来定义源和目标。但不幸的是,它只允许您在 Destination 中添加本地路径,而不是外部 IP 或域。

我们在 firebase 托管配置对象中需要这样的东西:

      "hosting": {
        // ...

        // Serves index.html for requests to files or directories that do not exist
        "rewrites": [ {
          "source": "/blog",
          "destination": "[SERVER IP / CUSTOM"
        } ]
      }

可能吗?

标签: firebasefirebase-hosting

解决方案


推荐阅读