Too many redirects error

This affects customers using Cloudflare's Flexible SSL.


  • Site crashes when WP Rocket is deactivated
  • Too many redirects error in your browser:


If you use Cloudflare's Flexible SSL on your site, there are some circumstances that can lead to a redirect loop.

WP Rocket's Cloudflare add-on fixes the redirect loop issue automatically for you. 

But if you deactivate WP Rocket without first enabling another solution, your site may crash and become inaccessible. 

Your browser may show the ERR_TOO_MANY_REDIRECTS error.


If you have access to the admin area of your site: 

If you don't have admin access:

  • You will need FTP or File Manager access
  • In your wp-config.php file add:
if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && 'https' === $_SERVER['HTTP_X_FORWARDED_PROTO'] ) { $_SERVER['HTTPS'] = 'on'; }

Your site should now function correctly.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.