web - CLoudflare 页面规则 : force SSL except specified URL pattern?

标签 web https redirect cloudflare

除了指定的 URL 模式外,是否可以使用 Cloudflare 强制使用 SSL?例如:example.com/* 强制使用 SSL,但 example.com/iframe 仅使用 HTTP,不使用 HTTPS。

最佳答案

如果您在 CloudFlare 的加密部分使用 Automatic HTTPS Rewrites,是的。为 example.com/iframe* 创建页面规则,其中 Automatic HTTPS Rewrites 关闭。请参阅页面规则设置的附加图像:

enter image description here

但是您可能正在使用 Microsoft IIS 或 Apache 进行重定向。在那种情况下,您必须在此处进行区分。

关于web - CLoudflare 页面规则 : force SSL except specified URL pattern?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42832333/

相关文章:

PHP imagick - 压缩上的白色方 block

javascript - 如何合并两个对象数组

java - 通过 HTTPS 使用 HttpClient 信任所有证书

ssl - nginx 将 http ://WWW. 示例重定向到 httPS://example(SSL/HTTPS 和 NON-WWW)

javascript - Angular 模板变量引用

proxy - 如何在nodejs中通过Web代理使用HTTPS

angular - 授权 header 未通过 HTTPS 加密

c# - 在 MVC 中重定向来自旧网站的请求

python - 如何将条件重定向添加到 Pyramid 中的每个 View ?

html - 使侧边栏始终为 100% 高度