大网数据广告活动
服务器运维问答

If you are migrating to HTTPS, will third party HTTP links to your images break?

· 52CE 我爱测

I write articles for multiple online blogs, and I host the images embedded in these articles on my personal website. I would like to implement SSL on my website, because one of the websites hosting these articles switched to HTTP…

问题原文

原帖链接 · zylixia · CC BY-SA 3.0

I write articles for multiple online blogs, and I host the images embedded in these articles on my personal website.

I would like to implement SSL on my website, because one of the websites hosting these articles switched to HTTPS links and the images are broken, which looks very unprofessional.

Unfortunately, a different website that also is using my images is using HTTP links still, and I am unable to switch them to using HTTPS.

I have seen websites where both the HTTP and HTTPS version of an image work, but how is this accomplished? Will the HTTP URL still work for the embedded images after the switch, or will it be broken as well unless I implement something special?

I have been unable to find any information about this at all, so I'm hoping someone here is able to help. I have not purchased the SSL certificate yet, but will be doing so through Dotster (my hosting provider) once I can guarantee nothing will break.

Thank you!

已采纳解答

原帖链接 · jarvis · CC BY-SA 3.0

For HTTPS Websites - once it loads an HTTP content, the green secure padlock icon will turn gray (for Chrome). The icon will likewise change in other web browser to indicate that the website is not fully secure. This is called Mixed Content. But the website should run and all images should appear normally. I personally do not recommend this. An HTTPS Website should only use HTTPS content.

For HTTP Websites - it's okay to load HTTPS content, like images. It will not break the HTTP website.

Your Image Source - Your website can serve both HTTP and HTTPS versions of your images. Simply (1) Do not force redirect your website from HTTP to HTTPS; and (2) Do not enable HTTP Strict Transport Security (HSTS).

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

资料来源与适用范围

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

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

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