Karachi, Pakistan Mon–Sat: 10AM–7PM PKT
Home Services
Design & Development
UI/UX Design Web Development WordPress Development Responsive Web Design Corporate Website Landing Pages / Microsites E-Commerce Solutions Mobile App Development
Marketing & Growth
SEO Services Content Marketing Social Media Marketing PPC / Google Ads Branding & Creative Speed & Performance
Hosting & Support
Web Hosting Maintenance & Support
Portfolio
Website Design Logo & Graphics
Clients About Blog Free Tools Get a Quote
Hosting & Care Guide

ERR_TOO_MANY_REDIRECTS: How to Fix a Redirect Loop

What causes redirect loops and how to fix them: Cloudflare SSL mode, WordPress URL settings, conflicting .htaccess rules, plugins and cookies.

ERR too many redirects: browser error showing too many redirects

ERR_TOO_MANY_REDIRECTS (Chrome) or "The page isn't redirecting properly" (Firefox) means the browser was sent round in a redirect loop: page A redirects to B, and B redirects back to A, until the browser gives up. Also, the most common causes are Cloudflare's SSL mode set to Flexible while the server forces HTTPS, mismatched WordPress Address and Site Address settings, conflicting redirect rules in .htaccess or plugins, and stale cookies. In addition, this guide shows how to find the loop and fix each cause safely.

Key takeaways
  • First clear cookies for the site or try a private window, to rule out a browser-side problem.
  • Trace the loop with curl -IL or an online redirect checker to see which URLs bounce.
  • Using Cloudflare? Set SSL/TLS to Full (strict), not Flexible.
  • In WordPress, make sure siteurl and home use the same, correct https URL.

ERR too many redirects: quick checks for visitors

  1. Open the page in a private or incognito window.
  2. Clear cookies for that one site (click the padlock or site icon in the address bar → Cookies and site data).
  3. Try another browser or device. If it works elsewhere, the cause was a stale cookie or cache.

ERR too many redirects: trace the loop (site owners)

curl -sIL --max-redirs 10 https://www.example.com/ | grep -iE "^(HTTP|location)"

In fact, the output shows each hop. Typical loop patterns:

PatternLikely cause
https → http → https → httpCloudflare Flexible SSL, or a plugin forcing http while the server forces https
www → non-www → wwwServer or panel forces one host, WordPress or a rule forces the other
/page → /page/ → /pageTrailing slash rules fighting each other
/wp-admin → /wp-login.php → /wp-adminCookie, HTTPS or siteurl problem affecting login

Fix 1: Cloudflare SSL mode

With Flexible SSL, Cloudflare connects to your server over plain HTTP. If your server or WordPress redirects HTTP to HTTPS, every request is redirected again, forever. Fix:

  1. Make sure the origin server has a valid SSL certificate (free Let's Encrypt from your host, or a Cloudflare Origin Certificate).
  2. In Cloudflare go to SSL/TLS → Overview and choose Full (strict).
  3. Enable Always Use HTTPS in Cloudflare, and keep only one HTTPS redirect at the origin or none.

See our Cloudflare setup guide for the full recommended settings.

Fix 2: WordPress Address and Site Address

In Settings → General, both fields should match your real URL, including https and www (or not). If you cannot reach the dashboard, set them in wp-config.php:

define( 'WP_HOME', 'https://www.example.com' );
define( 'WP_SITEURL', 'https://www.example.com' );

Or with WP-CLI:

wp option update home 'https://www.example.com'
wp option update siteurl 'https://www.example.com'

If the site is behind a proxy or load balancer that ends SSL, WordPress may think requests are HTTP. Then add this above the "stop editing" line in wp-config.php:

if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https' ) {
    $_SERVER['HTTPS'] = 'on';
}

Fix 3: Conflicting .htaccess and server rules

Look for more than one HTTPS or www rule. Many hosting panels have a "Force HTTPS" switch as well; combined with a rule in .htaccess and a plugin, they can disagree. Keep one combined rule:

RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.example.com%{REQUEST_URI} [L,R=301]

Back up .htaccess before editing. To test whether it is the cause, rename it temporarily to .htaccess-old; WordPress can regenerate a default one when you re-save permalinks.

Fix 4: Plugins and caching

  • Redirect, SSL (such as Really Simple SSL), multilingual and security plugins can all add redirects. Deactivate them one at a time, or rename the wp-content/plugins folder via File Manager to deactivate all at once.
  • Purge every cache layer after each change: caching plugin, server cache (LiteSpeed, Varnish), and CDN.
  • Check the Redirection plugin's list for a rule pointing a page to itself.

ERR too many redirects: other causes

  • A redirect from a page to a URL that redirects back, created during a redesign.
  • A WooCommerce "force secure checkout" setting fighting a non-HTTPS site URL.
  • Cookies set for the wrong domain after moving from non-www to www.

ERR too many redirects: frequently asked questions

Does a redirect loop hurt SEO?

Yes, if Googlebot meets it: the page cannot be crawled and may drop out of the index. Fix it quickly and request indexing in Search Console.

Why does it only happen on wp-admin?

Usually a cookie or HTTPS detection problem. Clear cookies and check FORCE_SSL_ADMIN and the proxy HTTPS fix above.

Related guides: 404 Error, 403 Forbidden Error and Your Connection Is Not Private Error.

For official guidance, see Google Search Central.

Site stuck in a loop?

Our support team fixes redirect loops, SSL and Cloudflare problems quickly. Contact us.

Written by the ItsWebExpert team, a web design and development company in Karachi building websites, online stores and apps for businesses across Pakistan.

Ask a Question on WhatsApp

Let's Build Your
Next Website

Tell us what you need and we will reply within 24 hours with honest advice and a fixed quote.

Trusted by our clients, rated 5.0 on Google

5.0 11 Google reviews Read all →
I had a great experience working with Waqas and his team. We got some website development and SEO work done, and I'm quite satisfied with the overall results. They understood our requirements, suggested improvements, and handled the work professionally. What I appreciated most was their communication, attention to detail, and willingness to make changes whenever needed. Waqas is very cooperative, and the team knows what they're doing. Definitely a good choice for anyone looking for reliable web development and digital marketing services.
HUHafiz Ubaid Google review · Nov 2026
I was referred to their company by someone, and I'm really glad I connected with them. Waqas, the CEO, is a very humble and professional person who leads his team exceptionally well. Their expertise in digital marketing, web development, and custom development services is impressive. The team is skilled, responsive, and committed to delivering quality work. Had a really positive experience working with them. Highly recommended!
MRMuhammad Rafeeq Google review · Nov 2026
I had hired them for my client's task of Custom Wordpress plugin development. and many other tasks later on.. Waqas is super fast and sharp.. I know him since 2019.. I really really appreciate his work. Highly recommended..
RFRaheela Farooqui Google review · Nov 2026
I had a positive experience working with Waqas and his team. They provided excellent support with graphic design and social media management. The team was professional, responsive, and attentive to our needs. They understood our vision and delivered quality work on time. Highly recommended for anyone looking for creative and reliable digital services.
URUsman Rock Google review · Nov 2026
I really appreciate their dedication and professionalism. They have a good understanding of SEO, social media marketing, and online brand growth. Communication is smooth, and the quality of work is impressive. Definitely a great team to work with!
SSSameer Sarafaraz Google review · Nov 2026
I've had a great experience working with their team. They understand digital marketing very well and know how to improve online visibility through effective SEO and marketing strategies. Professional, responsive, and reliable. Highly recommended! 🙌❤️
MNMohammad naveed Google review · Nov 2026
I had a really good experience with web Experts. Everything was easy to understand, well-organized, and user-friendly. I appreciate the effort and attention to detail that has gone into creating this platform. It was a smooth and pleasant experience, and I would definitely recommend it to others. Keep up the great work!
SSShazia shaikh Google review · Nov 2026
Extremely professional and committed I am Extremely happy to work with them I wish them best of luck Best Regards M. Salman Farooqui
SFSalman Farooqui Google review · Nov 2026
Outstanding experience! Quality, professionalism, and customer service are all excellent. Keep up the great work!
ARabdul rehman Google review · Nov 2026
Excellent service and a great experience. The team is professional, helpful, and dedicated. Highly recommended!
MEmustafa emb Google review · Nov 2026