https强制跳转

域名dns在cloudflare,配置强制跳转https.报too many。。。。

这里直接使用cloudflare提供的Page Rules功能,默认有三个免费的名额。

以下面的跳转目标规则为例配置:

http://test.com跳转到 https://test.com

http://test.com
Always Use Https

http://www.test.com跳转到 https://test.com

http://www.test.com
Forwarding URL
301-Permanent Redirect
https://test.com

发布了19 篇原创文章 · 获赞 0 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/qq_40961831/article/details/85266249