Cloudflare domain forwarding when switching domain name

Sam Domain & Email Solutions

Domain name providers like Godaddy allow you to easily forward your domains. However if you use cloudflare you can accomplish the same thing just with an extra step using page rules.

If you use the basic URL redirect for the whole domain like, then you lose anything else in the URL like the specific page a user was trying to visit such as

So if you set up the page rule pattern:

And set it to forward to:

Then if someone entered:

They would be redirected to:

Instead of:

Here is the page rule pattern to use in Cloudflare so that the information after the .com is kept:

Set the forwarding to www and add /* after the domain name:*

Then add /$1 to the forwarded URL:$1

Save the rule. Now if someone visits:

They will be redirected to:

This will help you keep your customers happy, help with SEO and make the domain change seamless.