{"id":2421,"date":"2018-11-28T15:36:10","date_gmt":"2018-11-28T09:51:10","guid":{"rendered":"https:\/\/themebeez.com\/blog\/?p=2421"},"modified":"2020-01-24T16:00:44","modified_gmt":"2020-01-24T10:15:44","slug":"fix-err-too-many-redirects-cloudflare-loop","status":"publish","type":"post","link":"https:\/\/themebeez.com\/blog\/fix-err-too-many-redirects-cloudflare-loop\/","title":{"rendered":"How To Fix Cloudflare Err Too Many Redirects loop (100% Effective)"},"content":{"rendered":"\n<p>Did ERR TOO MANY REDIRECTS appear on your screen or did you just add Cloudflare for your domain? Cloudflare can be an advantage to your website in many ways. Cloudflare helps to speed up your website performance &amp; adds security for your website. Cloudflare is basically a CDN ( Content delivery network ) that stays in the middle, between your domain &amp; web host. You can learn about <a href=\"https:\/\/cloudflare.com\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener nofollow\" class=\"rank-math-link\">Cloudflare from their website<\/a> pretty much. <\/p>\n\n\n\n<p>Today in this article,  I am going to guide you on how you can&nbsp;fix a website redirect loop after enabling Cloudflare for your domain. In simple language, this is how the error looks like &#8220;The page isn\u2019t redirecting properly&#8221; or &#8220;ERR TOO MANY REDIRECTS&#8221; errors.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Understanding Cloudflare Err Too Many Redirects loop<\/h2>\n\n\n\n<p>The figure below will show how your Cloudflare dashboard looks like when your domain is activated at Cloudflare.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1323\" height=\"451\" src=\"https:\/\/themebeez.com\/blog\/wp-content\/uploads\/2018\/11\/themebeez.com-at-cloudflare-dashboard.jpg\" alt=\"\" class=\"wp-image-2424\" title=\"\" srcset=\"https:\/\/themebeez.com\/blog\/wp-content\/uploads\/2018\/11\/themebeez.com-at-cloudflare-dashboard.jpg 1323w, https:\/\/themebeez.com\/blog\/wp-content\/uploads\/2018\/11\/themebeez.com-at-cloudflare-dashboard-300x102.jpg 300w, https:\/\/themebeez.com\/blog\/wp-content\/uploads\/2018\/11\/themebeez.com-at-cloudflare-dashboard-768x262.jpg 768w, https:\/\/themebeez.com\/blog\/wp-content\/uploads\/2018\/11\/themebeez.com-at-cloudflare-dashboard-1024x349.jpg 1024w\" sizes=\"(max-width: 1323px) 100vw, 1323px\" \/><\/figure>\n\n\n\n<p>When your domain is activated at Cloudflare. Cloudflare adds SSL for your domain. Cloudflare has a Flexible SSL that can cause redirect loops depending on certain configurations in the origin server. SSL refers to ( Secure Sockets Layer ) which basically is an extra security layer for your domain. To make this simple we say, with flexible SSL, all traffic between the web browser and Cloudflare is encrypted over HTTPS ( HyperText Transfer Protocol Secure ) which replace <strong>HTTP<\/strong> (&nbsp;HyperText Transfer Protocol ) for your domain as a result.<\/p>\n\n\n\n<p>But, we understand you didn&#8217;t get to see this change because you got redirect loop after enabling Cloudflare.<\/p>\n\n\n\n<p>Let&#8217;s go to the fixing method now. There is a simple matter to fix and solve the redirection loop after enabling Cloudflare.<\/p>\n\n\n\n<p>Cloudflare recommends Flexible SSL only when encrypted traffic cannot be supported at the origin web server because it lacks an SSL certificate. By enabling Flexible SSL, you are telling Cloudflare to send all requests between Cloudflare and the origin web host over <strong>HTTP<\/strong> ( not encrypted ). Since this can be confusion between the Cloudflare &amp; your host. To solve this confusion between host &amp; Cloudflare do kindly follow the steps below.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Go to <strong>Crypto<\/strong> ( Lock icon at top ) at Cloudflare dashboard<\/li><li>Look for the SSL option, you will see&nbsp; ( Flexible SSL ) selected.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1190\" height=\"605\" src=\"https:\/\/themebeez.com\/blog\/wp-content\/uploads\/2018\/11\/Crypto-cloudflare-dashboard.jpg\" alt=\"Cloudflare SSL\" class=\"wp-image-2425\" title=\"\" srcset=\"https:\/\/themebeez.com\/blog\/wp-content\/uploads\/2018\/11\/Crypto-cloudflare-dashboard.jpg 1190w, https:\/\/themebeez.com\/blog\/wp-content\/uploads\/2018\/11\/Crypto-cloudflare-dashboard-300x153.jpg 300w, https:\/\/themebeez.com\/blog\/wp-content\/uploads\/2018\/11\/Crypto-cloudflare-dashboard-768x390.jpg 768w, https:\/\/themebeez.com\/blog\/wp-content\/uploads\/2018\/11\/Crypto-cloudflare-dashboard-1024x521.jpg 1024w\" sizes=\"(max-width: 1190px) 100vw, 1190px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Change <strong>flexible<\/strong> SSL option to <strong>Strict<\/strong> SSL<\/li><li>Done!<\/li><\/ul>\n\n\n\n<p>Now, wait for a while and refresh your website. The issue of the website redirect loop will be solved after enabling Cloudflare. Your website will work fine. But this is not an end. Scroll the Crypto page at Cloudflare dashboard you will see an option called &#8221; <strong>Always use SSL<\/strong> &#8220;. Check\/Enable this option if this is disabled previously.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1066\" height=\"247\" src=\"https:\/\/themebeez.com\/blog\/wp-content\/uploads\/2018\/11\/Cloudflare-always-use-SSL.jpg\" alt=\"Cloudflare always use SSL\" class=\"wp-image-2427\" title=\"\" srcset=\"https:\/\/themebeez.com\/blog\/wp-content\/uploads\/2018\/11\/Cloudflare-always-use-SSL.jpg 1066w, https:\/\/themebeez.com\/blog\/wp-content\/uploads\/2018\/11\/Cloudflare-always-use-SSL-300x70.jpg 300w, https:\/\/themebeez.com\/blog\/wp-content\/uploads\/2018\/11\/Cloudflare-always-use-SSL-768x178.jpg 768w, https:\/\/themebeez.com\/blog\/wp-content\/uploads\/2018\/11\/Cloudflare-always-use-SSL-1024x237.jpg 1024w\" sizes=\"(max-width: 1066px) 100vw, 1066px\" \/><\/figure>\n\n\n\n<p>It might take a few hours to actually solve the redirect loop but this should be fixed usually with-in a few minutes. If you still have this problem after a few hours. You must go with another troubleshooting problem too. There are also other ways to troubleshoot this issue but it can be a little complicated for basic users.<\/p>\n\n\n\n<p>We can remove the HTTPS redirects in our origin server through rewrite rule. Make sure you go with the documentation below.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Apache<\/strong>&nbsp;<strong>Server<\/strong>: <a href=\"https:\/\/wiki.apache.org\/httpd\/RewriteHTTPToHTTPS\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener nofollow\" class=\"rank-math-link\">Rewrite rule<\/a><\/li><li><strong>Ngix Server<\/strong> : <a href=\"http:\/\/nginx.org\/en\/docs\/http\/ngx_http_rewrite_module.html#rewrite\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener nofollow\" class=\"rank-math-link\">Rewrite directives<\/a>&nbsp;&nbsp;&amp; <a href=\"http:\/\/nginx.org\/en\/docs\/http\/ngx_http_rewrite_module.html#return\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener nofollow\" class=\"rank-math-link\">301 return directive&nbsp;&nbsp;<\/a><\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Conclusion,<\/h3>\n\n\n\n<p>These stuffs can be complicated for many users. We always recommend using good web hosting to host your applications &amp; websites. We at themebeez.com always would like to recommend users to use good host with best support option. If you ask us for the best web hosting with the great support we will for sure recommend SiteGround.com web hosting service. They have a 24\/7 ticket, chat &amp; phone support system which is the best option for every user. Their cost is fair when compared to other hosting services providers. Make sure you check <a rel=\"noopener noreferrer\" href=\"https:\/\/www.siteground.com\/index.htm?afcode=6e8b4bff4267ce9bfec4c40627135030\" target=\"_blank\"><strong>SiteGround web hosting<\/strong> packages<\/a>.<\/p>\n\n\n\n<p>Do kindly drop your comments below if you ever had faced ERR TOO MANY REDIRECTS problem. Let us know if you need any help with selecting a web host for you. If you have time &amp; looking for the <a rel=\"noopener noreferrer\" href=\"https:\/\/themebeez.com\/blog\/55-best-free-wordpress-themes-that-you-must-try-in-2018\/\" target=\"_blank\"><strong>best free WordPress themes<\/strong><\/a> then you must check our collection too.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Did ERR TOO MANY REDIRECTS appear on your screen or did you just add Cloudflare&#8230;<\/p>\n","protected":false},"author":1,"featured_media":5131,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[56,57,58],"class_list":["post-2421","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-tutorial","tag-cloudflare","tag-https","tag-ssl"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/themebeez.com\/blog\/wp-json\/wp\/v2\/posts\/2421","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/themebeez.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/themebeez.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/themebeez.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/themebeez.com\/blog\/wp-json\/wp\/v2\/comments?post=2421"}],"version-history":[{"count":14,"href":"https:\/\/themebeez.com\/blog\/wp-json\/wp\/v2\/posts\/2421\/revisions"}],"predecessor-version":[{"id":7263,"href":"https:\/\/themebeez.com\/blog\/wp-json\/wp\/v2\/posts\/2421\/revisions\/7263"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/themebeez.com\/blog\/wp-json\/wp\/v2\/media\/5131"}],"wp:attachment":[{"href":"https:\/\/themebeez.com\/blog\/wp-json\/wp\/v2\/media?parent=2421"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/themebeez.com\/blog\/wp-json\/wp\/v2\/categories?post=2421"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/themebeez.com\/blog\/wp-json\/wp\/v2\/tags?post=2421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}