Best Cloudflare Page Rules for WordPress
Last updated:
Here are the best Cloudflare Page Rules for WordPress. 3 Page Rules can be created to set up a proper cache for your WordPress site.
What are Page Rules?
In Cloudflare, Page Rules allow you to control the Cloudflare settings that trigger on a specific URL. With Page Rules, only one page rule will be triggered at a single URL.
By using asterisks (*), you can create dynamic patterns that match not just one, but many URLs.
You can learn how to set up Cloudflare for WordPress in the following article.
How to Setup Cloudflare for WordPress
Page Rules Restrictions
You can create up to 3 Page Rules for free. You can also purchase additional Page Rules.
You can add from 5 to 95. Prices range from $5-$95/month.
Create a Page Rules in Cloudflare
Select the domain for which you want to set the page rule.
- Select a Rules
- Click on the Create Page Rules
This will open the Page Rules creation screen.
Best Cloudflare Page Rules for WordPress
The three best Cloudflare Page Rules for WordPress are as follows Do not cache the admin panel or preview.
Don’t cache the admin panel
Create the following page rule to avoid caching the WordPress admin page.
- Input example.com/wp-admin/*
- Select the Cache Level
- Select Disable Performance
- Select Bypass
- Click Save and Deploy
Please use the domain you are using for example.com.
Don’t cache previews
Create the following page rule to avoid caching the preview.
- Input example.com/*&preview=true*
- Select the Cache Level
- Select Bypass
- Select Disable Apps
- Click Save and Deploy
Please use the domain you are using for example.com.
Cache all pages of the domain
If you want to cache all pages of a domain, create the following page rule.
- Input example.com/*
- Select the Cache Level
- Select the Edge Cache TTL
- Select Cache Everything
- Select 2 hours
- Click Save and Deploy
Please use the domain you are using for example.com.
When you have finished creating the Page Rules, put them in the following order.
This completes the configuration of the best Page Rules for WordPress.