Ask How can you redirect a domain via Cloudflare?

Brajet

Emerald
DOLLAR$
$17,183.20
Cloudflare domain redirection lets you forward visitors from one domain or subdomain to another easily. The simplest method is using Page Rules: in Cloudflare's dashboard, create a rule that matches your source URL (like http://oldsite.com/*), then set it to "Forwarding URL" with a 301 (permanent) or 302 (temporary) redirect to your target domain (such as https://newsite.com/$1). The wildcard * and variable $1 let you redirect all paths dynamically. For more advanced needs, Cloudflare Workers can run custom scripts to handle redirects programmatically. Remember to enable Cloudflare's proxy (orange cloud) for these to work. Page Rules are limited on free plans, so Workers are better for many redirects. This setup is useful for redirecting old domains, HTTP to HTTPS, or non-www to www versions of a site.
 
I like this method because it doesn't require touching the server or hosting setup. Cloudflare basically handles everything at the edge, so traffic is redirected instantly. Page Rules are great for small setups, but yeah, if you're trying to migrate a big site, Workers are the way to go. The only thing to watch out for is making sure the proxy (orange cloud) is on, or the redirect won't actually work.
 
You can redirect a domain via Cloudflare using Page Rules:

Log in to your Cloudflare account and select your domain.
Go to Rules > Page Rules.
Click Create Page Rule and enter the pattern for the domain you're redirecting (e.g., "example.com/").
Choose Forwarding URL as the action and set it to 301 or 302 based on whether the redirect is permanent or temporary.
Enter the destination URL and save the rule.
You know this method works quickly and is free to set up on Cloudflare.
 

RECOMMENDED COURSES

  • Create an Online Course A-Z
    Create an Online Course A-Z
    Design, Develop, and Run Your Own Profitable & Engaging Online Training Program
    • BMF.io
    • Updated:
  • Affiliate Marketing A-Z
    Affiliate Marketing A-Z
    Affiliate marketing is when a merchant pays an affiliate for sales, clicks, or leads.
    • BMF.io
    • Updated:
  • Digital Marketing A-Z
    Digital Marketing A-Z
    Digital marketing turns clicks into conversations—and conversations into loyal customers.
    • BMF.io
    • Updated:
  • Group Coaching Program A-Z
    Group Coaching Program A-Z
    How to Design a Group Coaching Program That Expands Your Impact & Transforms Lives
    • BMF.io
    • Updated:
  • Create a Membership Site A-Z
    Create a Membership Site A-Z
    Build and Run Subscription Websites for Reliable, Recurring Income
    • BMF.io
    • Updated:
  • Start a Freelance Business A-Z
    Start a Freelance Business A-Z
    Becoming a freelancer is one of the easiest and fastest ways to start your own business.
    • BMF.io
    • Updated:
Back
Top