How do I redirect a domain to another domain in Cloudflare?
Overview
- Log into your Cloudflare account.
- Click the appropriate Cloudflare account for the domain where you want to add URL forwarding.
- Select Rules > Page Rules.
- Under Page Rules, click Create Page Rule.
- Under If the URL matches, enter the URL or URL pattern that should match the rule.
- Next, click Add a Setting.
How do I link two domains?
Pointing two URLs to the same website is a good way to direct traffic to your site from several different domain names. You can accomplish this in two ways: either redirect one of the URLs to your primary domain, or create an alias for one of the URLs. The alias would point that domain towards your primary domain.
How to redirect one domain to another in Cloudflare?
The following settings need to be configured under the domain you are redirecting from, in this example, this is domainA.com The first thing you will need is a DNS record for @, www and any other subdomains you want to redirect, set to . This can point to any IP address as the redirection page rule will execute first.
How to add Cloudflare page rule subdomains?
Page Rule subdomains require an “Orange Clouded” DNS record for the Page Rule to work. Page Rules won’t apply to subdomains that don’t exist in DNS or aren’t being directed to Cloudflare. Log into your Cloudflare account. Click the appropriate Cloudflare account for the domain where you want to add URL forwarding. Select Rules > Page Rules.
How to forward a URL with Cloudflare?
Choose Forwarding URL from the drop down menu. Click Select Status Code and choose 301 (Permanent Redirect) or 302 (Temporary Redirect). Enter the destination URL. To finish, click Save and Deploy. Traffic must pass through Cloudflare for Page Rules to work.
What do I need to redirect one domain to another?
The first thing you will need is a DNS record for @, www and any other subdomains you want to redirect, set to . This can point to any IP address as the redirection page rule will execute first.