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

Do I need a certificate to redirect via CNAME?

· 52CE 我爱测

I have abc.example.com that is being shut down and all data was sent via SSL. I have xyz.example.com already live and pure SSL site. I am changing record ( CNAME ) for abc.example.com to point to xyz.example.com . xyz.example.com…

问题原文

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

I have abc.example.com that is being shut down and all data was sent via SSL.

I have xyz.example.com already live and pure SSL site. I am changing record (CNAME) for abc.example.com to point to xyz.example.com. xyz.example.com already has a working cert. Do I need a cert for traffic originating from abc.example.com?

已采纳解答

原帖链接 · Rick Su · CC BY-SA 4.0

Yes, you'll still need an SSL certificate for abc.example.com

Due to the nature of CNAME redirection, when you type abc.example.com in the browser, the URL stays abc.example.com, and this is where you need the SSL certificate.


SEO Tips

You might want to use 301 redirects instead of CNAME redirect, this will pass on the ranking power/juice from abc.example.com to xyz.example.com.

However, this would still require an SSL certificate.

Have you tried Let's Encrypt ? a certificate authority that provides free SSL certificate.

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

资料来源与适用范围

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

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

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