Website Redirecting When Cloudflare’s Proxy Active (Orange Clouds ON)

3 min read

Table of Contents

  1. Are You Experiencing an Unexpected Website Redirect With Cloudflare?
  2. Cloudflare SaaS Partners
  3. Liberate the Hostname

Are You Experiencing an Unexpected Website Redirect With Cloudflare?

An unusual redirect issue we encountered occurred only when the Cloudflare proxy was active (as soon as the orange clouds were turned on). Upon deactivating the proxy, the redirect disappeared, and the website loaded correctly again.

The debug clearly demonstrated that the issue stemmed from Cloudflare, but it was still quite a mystery as to why this was happening.

This article details the source of the problem and how to solve it if it occurs on any of your websites.

Cloudflare SaaS Partners

The issue can happen if your domain was previously registered with a Cloudflare SaaS partner. Technically, it’s not actually a redirect, it’s Cloudflare pointing the domain to the A record of the previous SaaS partner.

The SaaS partner service offering allows partner providers to use Cloudflare’s features on their customers’ domains, which means that Cloudflare’s SSL certificates, hostnames, security settings, and performance settings are all set up to be managed in a completely different account from your own.

Hostname Priority

The partner should have removed your domain after they ceased providing their service, but in the case we’ve seen, the domain had not been officially “offboarded.”

Until your website is offboarded from their account, you won’t be able to manage any of the regular Cloudflare settings until you retake control.

This is due to “Hostname Priority.” If multiple Cloudflare setups exist for the same hostname, only one can take effect. Cloudflare for SaaS partners works differently, so it is prioritized over your regular DNS setup.

What To Do If A Previous Provider Has Not Offboarded Your Domain

You potentially have three options to retake control of your hostname – if you’ve only recently registered the domain, then you’ll only have options 2 and 3: 

  1. If you worked with a Cloudflare SaaS partner, you can contact them directly and ask them to offboard you.
  2. Paid plans only: Reach out to Cloudflare support at Select “Get More Help”, then “Account” as the issue type. Finally, use the description “Cannot remove custom hostname” and include a clear description of what’s happening for their support. Note that this may not be resolved quickly.
  3. Use the third-party service “Liberate the Hostname” as detailed below.

Liberate the Hostname

Liberate the Hostname is a third-party service that allows you to take control of your hostname from the current SaaS partner provider. They will then offload it to allow you to take back control.

This is likely the quickest way to resolve this issue for your website. Also, if your website is on Cloudflare’s Free tier, you can’t contact their support team to help resolve the issue, so it’s likely your only option.

The service can be found here and provides clear instructions for the whole process.