我想在Cloudflare上创建几个页面规则,这将始终强制任何URL使用https://而不是http://。Cloudflare SSL页面规则
我已经尝试了各种解决方案,但我似乎无法弄清楚。我最终会遇到无限循环或http://使用情况。所以我希望有人能指引我走向正确的方向。
我想要的是以下所有的URL重定向到使用https://:
- example.com
- app.example.com
- user.app.example.com
- www.example.com
- example.com/test
- app.example.com/test
- user.ap p.example.com/test
- www.example.com/test
我已经尝试了所有的规则如下:
*.example.com/* Should forward to https://$1.example.com/$2
example.com/* Should forward to https://example.com/$2
*example.com/* Should forward to https://$1example.com/$2
http://*example.com/* Should always use HTTPS
一起使用#1和#2导致无限重定向循环。 #3也是。 Number 4适用于'example.com',但是当我尝试访问'app.example.com'时什么也不做,
有人能帮我解决这些页面规则吗?
这些工作,但他们2个是多余的。干杯 –