How to redirect non-www to www without ERR_TOO_MANY_REDIRECTS


Problem: cannot be redirected to

What was done?

  1. Created Cloudflare Server Origin SSL and imported into hosting and WordPress activated SSL plugin with green status, and Cloudflare set to Full SSL.
  2. Cloudflare rule added to redirect will result in ERR_TOO_MANY_REDIRECTS
  3. Adding a redirect rule at hosting server hpanel/cpanel has no effect.
  4. htaccess addition of redirect also result in ERR_TOO_MANY_REDIRECTS

What can be the problem?

Note: I compared with another site and found an extra line on Cloudflare DNS regarding www for


Should be Full Strict.

Thanks for the reply but still not working.

Tested SSL Strict and Set Cloudflare redirect non-www to www. Incognito, cleared cookies, another browser, all returned the same ERR_TOO_MANY_REDIRECTS.

So your encryption mode is on Strict now?

On Full Strict now. But I deactivated the Clooudflare redirect rule because of the error.

All right, that’s the proper mode now.

As for the redirect, the issue is your server is redirecting www to the naked domain, that’s why you have the loop. You’ll need to remove that redirect on your server.

$ curl -I
HTTP/1.1 301 Moved Permanently

Ah yes, the curl shows WordPress to be the one doing the redirect.

My fault for WordPress Settings → General for URL to be non-www. Rectified as in image. Let this be a lesson for others as well.

Thanks, Sandro for your knowledgeable and prompt help and for pointing in the right direction!

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