2022-11-30
Cloudflare redirect with Page Rules
Redirecting www url to non-www on Cloudflare using Page Rules.
Home
-> select site minho42.com
-> Rules
from left menu -> Page Rules
-> Create page Rule
URL (required): www.minho42.com/*
Pick a Setting (required): Forwarding URL
Select status code (required): 301 - Permanent Redirect
Enter destination URL (required): https://minho42.com/$1
Redirect not working
If redirection from www.minho42.com
to minho42.com
is not working, ensure both domains are configured in the DNS CNAME records:
Type: CNAME
Name: www
Target: blog-77z.pages.dev
Type: CNAME
Name: minho42.com
Target: blog-77z.pages.dev