[英]What Cloudflare page rules should be added for a WordPress website to run on HTTPS naked (non www) URLs only?
Here is the existing configuration of my site: 这是我网站的现有配置:
I don't have a clear understanding of what Cloudflare does and how it integrates with WordPress. 我对Cloudflare的功能及其与WordPress的集成方式不甚了解。 However, I would like to achieve this without making any changes in WordPress.
但是,我想在不对WordPress进行任何更改的情况下实现这一目标。 What DNS and Page Rules combo should I configure in order to serve all the URLs ONLY over https without www ?
我应该配置什么DNS和页面规则组合才能仅通过https而不使用www来提供所有URL?
Based on this answer here , I tried changing my DNS settings but it didn't work. 根据此处的答案 ,我尝试更改DNS设置,但没有成功。 And I can't get my head around Cloudflare Page Rules.
而且我无法理解Cloudflare页面规则。
In order to accomplish this you should create two Page Rules. 为此,您应该创建两个页面规则。 One that redirects all traffic to https, and another that directs all www traffic to the root domain.
一种将所有流量重定向到https,另一种将所有www流量重定向到根域。
You can find directions for these Page Rules on this KB article (they are the first two). 您可以在此知识库文章中找到这些页面规则的说明 (它们是前两个)。 Or there is a video tutorial as well.
或者也有一个视频教程 。 If you are already maxed out on Page Rules there is also an option now to purchase additional rules without changing plans.
如果您已经对“页面规则”非常满意,现在还可以选择购买其他规则,而无需更改计划。
(I'm from Cloudflare) (我来自Cloudflare)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.