🥳 Celebrate Our Launch With a $200 LIFETIME Discount OFF The Premium Plan Use: BIRTHDAY2024

This offer expires 9/30/2024, at 11:59 PM EST

BizStackPro all-in-one digital marketing platform dashboard.
Redirect Domains in Cloudflare (www ↔ non-www) – BizStackPro Help

Redirect Domains in Cloudflare (www ↔ non-www)

Use Cloudflare to force one “primary” domain version (www or non-www) for cleaner URLs, consistent branding, and fewer duplicate-content issues.

Controlling How Your Domain Loads Across the Internet

You may have your domain connected, but how it behaves depends on your DNS and redirect setup.

Without proper configuration, visitors could land on different versions of your site depending on how they type your URL.

This can create inconsistencies in branding, tracking, and search visibility.

This guide will show you how to use Cloudflare to control redirects so your domain always loads the correct version.

Once you understand how Cloudflare redirects work, follow the steps below to configure DNS records, set redirect rules, and test your domain behavior.

Before You Start

Decide which version you want as the primary: www (example: www.yourdomain.com) or non-www (example: yourdomain.com).

  • Pick one primary and redirect the other to it.
  • Make sure both hostnames exist in DNS (root + www).
  • After redirecting, attach your BizStackPro funnel/website to the primary domain.

Follow along: You’ll confirm DNS first, then add a 301 redirect using Cloudflare rules.

Step 1: Confirm DNS Records in Cloudflare

  1. Log in to Cloudflare and select your domain.
  2. Open DNS.
  3. Confirm a record exists for the root (@) and for www.
  4. Make sure both hostnames resolve correctly before creating redirect rules.

Pro tip: If you recently changed DNS, allow propagation time and test again in an incognito window.

Step 2: Create a 301 Redirect Rule

Cloudflare has a couple of ways to do this depending on your dashboard. Use whichever option you have available.

Option A: Redirect Rules (Recommended if available)

  1. Go to Rules → Redirect Rules (or Rules in your Cloudflare menu).
  2. Click Create rule and choose Redirect.
  3. Match the hostname you want to redirect (example: www.yourdomain.com).
  4. Set the destination to your primary domain (example: https://yourdomain.com/$1).
  5. Choose 301 Permanent and save.

Option B: Page Rules (Classic Method)

  1. Go to Rules → Page Rules.
  2. Click Create Page Rule.
  3. Enter the URL pattern to match (example: https://yourdomain.com/* or https://www.yourdomain.com/*).
  4. Set to Forwarding URL301 Permanent Redirect.
  5. Set the destination (example: https://www.yourdomain.com/$1 or https://yourdomain.com/$1).
  6. Click Save and Deploy.

Important: Only redirect one direction. If you redirect both ways, you’ll create a loop.

Step 3: Test & Troubleshoot

  • Wait a few minutes after saving the rule.
  • Test in an incognito/private browser window.
  • Try both the root and www versions to confirm the non-primary redirects to the primary.

If the redirect fails: check DNS records, confirm the wildcard pattern is correct, remove conflicting rules, and clear browser/DNS cache.

Want your funnels and websites on a clean, consistent domain?

Pair Cloudflare redirects with BizStackPro domains, funnels, websites, and automations so everything runs under one brand-ready URL.

Frequently Asked Questions

What should I do if my domain redirect is not working as expected?

Confirm DNS records for both hostnames, then verify your rule targets the correct domain and includes the wildcard path. Test in incognito and remove any conflicting rules.

How long does it take for the domain redirect to become active?

Rules usually apply within minutes, but DNS propagation can take up to 24 hours after DNS changes. Retest after propagation.

Can I set up multiple redirects using Cloudflare rules?

Yes—create multiple rules as long as they don’t overlap or conflict. Avoid rules that could cause redirect loops.

What is the difference between a 301 and 302 redirect, and which one should I use?

Use 301 for a permanent primary domain (best for SEO). Use 302 only for temporary redirects.

Standardize Your Domain & Keep Everything SEO-Friendly

Redirecting www ↔ non-www helps unify your links, tracking, and search signals. Once your primary domain is set, connect it to your BizStackPro funnel or website for a cleaner public URL.

✅ View Plans & Features

One domain. One brand. One destination.

Disclaimer: This site is NOT endorsed by Google, Facebook or YouTube in ANY WAY. All trademarks & Logo / branding are the property of their respective owners. Please Note: This site was created in BizStackPro by Ken George II (An Affiliate of BizStackPro) and may contain affiliate links.

All About BizStackpro


Copyrights 2024 | AllAboutBizStackPro.Com | Pricing | About | Features | All Rights Reserved.