Site Caught In Redirect Loop When CF activated

Answer these questions to help the Community help you with Security questions.

What is the domain name?

Have you searched for an answer?

Please share your search results url:

When you tested your domain using the Cloudflare Diagnostic Center, what were the results?
The site does not have any DNSSEC records.
The hostname has no DS records.

HTTPS - No, your request failed with a response status of 400 or above.

Describe the issue you are having:
When Cloudflare is active, our website redirects 19 times but when putting CF into development mode, the site loads but without HTTPS as cPanel has no SSL.

What error message or number are you receiving?

What steps have you taken to resolve the issue?

  1. We deactivated CF
  2. We unproxied our website A record

Was the site working with SSL prior to adding it to Cloudflare?

What are the steps to reproduce the error:

  1. Activate Cloudflare

Have you tried from another browser and/or incognito mode?

Right now, your site is not proxied through Cloudflare and it throws an error because of the SSL certificate. The error is that the certificate is for and not for the website itself. Since the name doesn’t match, there is an error.

When you try to enable Cloudflare, this error causes the problem you’re seeing.

You need a valid certificate on your server before you enable Cloudflare on the site. You can use Certbot to get a Let’s Encrypt certificate. Or, you can get an Origin Certificate from Cloudflare that will only be valid so long as the site is proxied through Cloudflare. But the bottom line is that the site has to work with HTTPS before you try putting Cloudflare in front of it.

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