Bulk Redirect work not working as expected

I have two domains both registered and proxied with cloudflare and am basically trying to get one of them to redirect to another preserving the path following the domain

The scenario:
I own a .co.uk domain and .com domain with the .com being the primary domain
I want it so that if anybody hits the .co.uk domain it essentially replaces the “.co.uk” element with “.com” preserving the rest of the URL

I have tried to set this up with bulk redirects with settings as follows:
Source URL: “company.co.uk/
Target URL: “https://company.com
Status: 301
Options Ticked:
Preserve query string
Include subdomains
Subpath matching

What am I doing wrong here because currently whenever I hit anywhere on company.co.uk it redirects to the root of the company.com domain and doesn’t preserve the URL.

Hi,

Thank you for reaching out to us. Can you please submit a ticket or the domain you’re trying to set up with bulk redirects so we can further investigate this?

Alternatively, you can try adjusting the redirect settings:

  • Source URL: “company.co.uk/*” (include the asterisk to capture all paths)
  • Target URL: “https://company.com$1” (use $1 to preserve the path)
  • Status: 301
  • Options Ticked:
    • Preserve query string
    • Include subdomains
    • Subpath matching

By modifying the Source URL to “company.co.uk/*” and the Target URL to “https://company.com$1”, you should be able to redirect from the .co.uk domain to the .com domain while preserving the path following the domain. This adjustment ensures that the full URL path is maintained during the redirection process.

For more information you can refer to the following links: How Bulk Redirects work · Cloudflare Rules docs

Kindly,

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.