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

你可能感兴趣的:(https强制跳转)