Log in to your Cloudflare account
Select your domain
Go to DNS
Add or edit an A record or CNAME record for the domain
Set the record name to `@` for the root domain or `www` for the subdomain
Point the A record to your website server IP or the CNAME record to your target hostname
Set the proxy status to Proxied or DNS only as needed
Save the DNS record
Go to Rules
Open Redirect Rules
Create a new redirect rule
Set the source URL to match the domain or path you want to redirect
Set the destination URL to your website address
Choose the redirect type, such as 301 or 302
Save and deploy the redirect rule
If needed, add a page rule or bulk redirect for additional paths
Test the domain in a browser
Clear browser cache or Cloudflare cache if the redirect does not appear immediately
