# How to Redirect a Website in Cloudflare to Another Site

> Go to https://www.cloudflare.com/ and log into your account. From the Cloudflare dashboard, select the domain you want to redirect. In the site’s dashboard, click on Rules in the top navigation, and then select Page Rules.

- Source: https://support.yash-host.in/cloudflare/how-to-redirect-a-website-in-cloudflare-to-another-site/
- Topic: Cloudflare
- Last reviewed: 2024-11-04 by Yash Host Support Team
- Publisher: Yash Host Private Limited (https://yash-host.in)

### Step 1: Log in to Your Cloudflare Account

Go to [https://www.cloudflare.com/](https://www.cloudflare.com/) and log into your account.

![](https://cdn.kbassets.in/cloudflare%20login.gif)

### 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.

![](https://cdn.kbassets.in/cloudflare-rules.gif)

### Step 4: Create a New Page Rule

Click on **Create Page Rule** to begin setting up the redirect rule.

![](https://cdn.kbassets.in/cloudflare-create-rule.gif)

### Step 5: Define the Redirect Pattern

1. 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.

2. **Choose Forwarding URL**: In the drop-down menu under **Then the settings are**, select **Forwarding URL**.

3. **Set Redirect Type**: Choose the type of redirect: **301 – Permanent Redirect** (Recommended if this is a permanent change)

4. **302 – Temporary Redirect** (Use if you might revert the change in the future)

5. **Enter Destination URL**: In the **Forwarding URL** field, enter the URL you want to redirect visitors to, such as `https://newsite.com`.

![](https://cdn.kbassets.in/cloudflare-rules-redirects.gif)

### 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.

---
Need help? WhatsApp +91 7660000158 · support@yash-host.in
