simple domain redirect 301 using Cloudflare page rules
URL: example.com/*
Forward to: https://www.example.com/$1
sub domain url redirect in Cloudflare
he wildcard page rule. Since your subdomains may have more than one URL, you may want to change your rule slightly:
URL: *.example.com/*
Forward to: https://$1.example.com/$2
You don’t need to add the HTTP/S in the source URL, only in the target.
single sub domain url redirect in Cloudflare
first its need dns record with yellow cloud icon
test.example.com/*
redirect 301 for permanent, 302 for temporary
Forward to: https://$1.example.com/$2
*.example.com/*
cahce level everything page rules in Cloudflare
its cahce including html by default standard its only caches files ends with .css .js. and images static content resources.
caching html pages and purging some complications, in wordpress apo automatically platform optimization works well for paid $5 or you can use it for free with cach rules beta options in Cloudflare
URL: example.com/*
cache level everything
optional edge cache ttl 2 hours .. (not working for automatic cache purge)
you can check status in chrome dev tools
cf status hit miss or bypass or dynamic
dynamic means cache level everythig not working
use key cdn curl tool to check easily