如何配置Firebase托管以从具有和不具有“ www”子域的自定义域提供我的应用程序?

问题描述 投票:0回答:1

我希望从以下网站访问我的网站:www.myexamplewebsite.ptmyexample.pt。有和没有www部分。

目前仅www.myexamplewebsite.pt正在工作。

[当我尝试访问myexamplewebsite.pt(没有www)时,发生这种情况:

    1. 我收到警告:潜在的潜在安全风险页面
    1. 即使我选择继续在“警告”页面上,也会得到这样的从Firebase中找不到页面

enter image description here


  • 这是我当前的自定义域托管配置:

enter image description here


  • 这是我在DNS提供商上拥有的DNS CNAME记录。

注意:由于无法从Firebase找到页面(如上所述),我想我的DNS设置没有问题。

enter image description here


问题

如何通过两个URL(带有和不带有www)访问我的Web应用程序?

我发现的唯一的Firebase Hosting文档提到了这一点,对我没有太大帮助:

https://firebase.google.com/docs/hosting/custom-domain#set-up

enter image description here

firebase dns firebase-hosting
1个回答
0
投票

根据我的经验,对两个域(即www.myexamplewebsite.ptmyexamplewebsite.pt)执行相同的DNS配置就可以解决问题。

© www.soinside.com 2019 - 2024. All rights reserved.