大网数据广告活动
网站运营与故障问答

Firebase and Godaddy: Hosting redirection to www doesn't work for https

· 52CE 我爱测

I have a website whose domain name is example.com from GoDaddy and my SSL certificate and hosting is on firebase . Currently www.example.com forwards properly to https://www.example.com but https://example.com shows a security er…

问题原文

原帖链接 · anonn023432 · CC BY-SA 4.0

I have a website whose domain name is example.com from GoDaddy and my SSL certificate and hosting is on firebase.

Currently www.example.com forwards properly to https://www.example.com but https://example.com shows a security error on all browsers. I am trying to set it up so that https://example.com or example.com forwards to https://www.example.com

I added a domain forwarding to redirect it to https://www.example.com.

My firebase settings are as follows:

Firebase is successfully connected to the www version of my site but the connection to the non-www version never happens even though I already have the settings on my goDaddy as visible below:

And CNAME setting to connect GoDaddy to Firebase:

How can I make https://example.com to forward to https://www.example.com

已采纳解答

原帖链接 · Maximillian Laumeister · CC BY-SA 4.0

The problem is that GoDaddy doesn't support redirects from HTTPS. But the good news is that Firebase supports this natively and automatically.

The solution is instead of using GoDaddy for your bare domain, use Firebase. The detailed instructions can be found here:

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

In essence, you will need to go to the "connect domain" section of Firebase Hosting to find the Firebase IP addresses, then go to GoDaddy and change your A records to point to these Firebase IPs.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2019-05-19)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。