How to Redirect a Website in Cloudflare to Another Site
Step 1: Log in to Your Cloudflare Account
Go to https://www.cloudflare.com/ and log into your account.

Step 2: Select Your Website
From the Cloudflare dashboard, select the domain you want to redirect.
Step 3: Go to Rules
In the site’s dashboard, click on Rules in the top navigation, and then select Page Rules. Page Rules let you control how Cloudflare applies specific behaviors to traffic matching your patterns.

Step 4: Create a New Page Rule
Click on Create Page Rule to begin setting up the redirect rule.

Step 5: Define the Redirect Pattern
- In the If the URL matches field, enter your site URL. For example, if you want to redirect the entire domain, enter
https://example.com/*
, replacing “example.com” with your domain. The asterisk*
acts as a wildcard to apply this rule to all pages on your domain. - Choose Forwarding URL: In the drop-down menu under Then the settings are, select Forwarding URL.
- Set Redirect Type: Choose the type of redirect:
- 301 – Permanent Redirect (Recommended if this is a permanent change)
- 302 – Temporary Redirect (Use if you might revert the change in the future)
- Enter Destination URL: In the Forwarding URL field, enter the URL you want to redirect visitors to, such as
https://newsite.com
.

Step 6: Save and Deploy the Rule
Click Save and Deploy to activate the rule.
Your website will now redirect to the specified URL. Cloudflare will handle the redirect at the DNS level, meaning users will be directed to the new site without needing changes on your server.
Was this article helpful?
YesNo