Cloudflare offers free services that help you host a domain DNS and setup page rules for redirecting visitors. A standard domain redirect, from A to B doesn't require Cloudflare (just ask one of our team to help you), however the service from Cloudflare is particularly useful if you want the visitors of your old domain to visit a specific page you've setup on your new store.
Example Redirect Setup
I want customers of www.brand-a.com to arrive to the specific Brand A welcome page on my new site for Brand B. So I want all visitors from www.brand-a.com to redirect to www.brand-b.com/welcome-to-the-new-store
Create a Cloudflare Account:
Go to Cloudflare and sign up for a free account.
Once signed up, log in to your Cloudflare dashboard.
Add the Old Domain to Cloudflare:
Click on the Add Site button.
Enter the old domain
www.brand-a.com
and click Add Site.Choose the Free Plan and click Confirm Plan.
Cloudflare will scan the DNS records. Review and confirm the DNS records.
Update Nameservers:
Cloudflare will provide you with nameservers. Update your domain registrar's nameservers to the ones provided by Cloudflare.
This step may take some time to propagate.
Create a Page Rule for Redirection:
In the Cloudflare dashboard, go to Rules > Page Rules.
Click on Create Page Rule.
Enter the URL pattern
*www.brand-a.com/*
.Under Pick a Setting, choose Forwarding URL.
Select 301 - Permanent Redirect.
Enter the destination URL
https://www.brand-b.com/welcome-to-the-new-store
.Click Save and Deploy.
Verify the Redirect:
After the nameservers have propagated, visit
www.brand-a.com
to ensure it redirects to the new URL.
For more detailed help, you can refer to these Cloudflare resources: