【问题标题】:Redirect subdomain.example.com to example.com in firebase web hosting, but keep the URL intact在 firebase 虚拟主机中将 subdomain.example.com 重定向到 example.com,但保持 URL 不变
【发布时间】:2019-01-11 02:21:59
【问题描述】:

我在 firebase 虚拟主机上托管了 https://example.com

现在,我希望 https://subdomain.example.com 访问 https://example.com 托管站点,但 URL 应该保持不变并且仍然显示 https://subdomain.example.com

我将根据子域名处理网页上的 UI,因此保留子域非常重要。

如果我使用“重定向到现有域”选项,则会更改 URL。是否有任何配置允许我在 firebase 上执行此操作?

网站是使用 AngularIO 构建的,因此也欢迎任何作为 Angular 部署一部分的建议。

虽然网站上有类似的问题,但我找不到任何解决方案。所以,在这里再次询问更清晰的描述。感谢您的帮助。

【问题讨论】:

    标签: firebase firebase-hosting


    【解决方案1】:

    只需连接subdomain.example.com,但不要将其设置为重定向。所有连接到项目的非重定向域/子域都将解析相同的内容。

    【讨论】:

      猜你喜欢
      • 2012-10-28
      • 2020-12-12
      • 2013-02-05
      • 2019-04-16
      • 2021-10-13
      • 2012-03-29
      • 2012-01-01
      • 2012-02-06
      相关资源
      最近更新 更多