如何在DISQUS上启用SSL支持? [英] How to enable SSL support on DISQUS?

查看:128
本文介绍了如何在DISQUS上启用SSL支持?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何为DISQUS启用HTTPS / SSL支持?

How do I enable HTTPS/SSL support for DISQUS?

我知道它已经实现,但我无法找到如何启用它在WordPress中。

I'm aware that it has been implemented, but I'm unable to find out how to enable it in WordPress.

推荐答案

我们更新了 WordPress的Disqus插件版本2.71(更改日志)以支持SSL。除了通过SSL加载自己之外,没有什么需要做的 - 如果页面是通过HTTPS加载的,那么Disqus将通过HTTPS加载。具体来说,嵌入(embed.js)和评论计数在您网站的首页(count.js)将通过HTTPS加载,重定向它们通过securecdn.disqus.com而不是mediacdn.disqus.com进行调用。

We updated the Disqus plugin for WordPress in version 2.71 (change log) to support SSL. There's nothing you need to do other than load your itself via SSL — if the page is loaded via HTTPS, Disqus will load via HTTPS. Specifically, the embed (embed.js) and the comment counts on your site's front page (count.js) will load via HTTPS, which redirects them to be called via securecdn.disqus.com instead of mediacdn.disqus.com.

请注意,首次转换为通过HTTPS调用页面后,最多可能需要24小时才能在您的网站上生效。此外,由于这种缓存,请记住,每次通过HTTP而不是HTTPS调用Disqus时,都可能发生同样的等待。如果这不可取,我们建议将?https附加到插件中的embed.js和count.js调用的末尾,这将强制它们通过HTTPS加载。

Note that it may take up to 24 hours for this to take effect on your site once you first transition to calling pages via HTTPS. Also, because of this caching, keep in mind that each time Disqus is called via HTTP instead of HTTPS this same wait may occur. If that's not desirable we'd recommend appending ?https to the end of the embed.js and count.js calls in the plugin which will force them to be loaded via HTTPS.

这篇关于如何在DISQUS上启用SSL支持?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆