How to fix "too many redirects" errors on your website
Why redirect loops happen, how to trace them, and how to fix the common causes, from HTTPS and CDN settings to www rules and CMS URLs.
What mixed content is, why browsers block it, and how to find and fix insecure images, scripts and links so your site shows as fully secure.
Mixed content happens when a secure HTTPS page loads images, scripts, stylesheets or other files over insecure HTTP. Browsers block risky resources and may show the page as not fully secure. Find insecure URLs with browser developer tools or a scanner, update them to HTTPS in your content, theme, plugins and settings, and use a Content Security Policy rule to upgrade remaining requests.
You've moved your site to HTTPS, but the padlock is missing, images are broken or features don't work. The likely culprit is mixed content: parts of the page still loading over HTTP.
HTTPS encrypts traffic between visitors and your site. If a secure page loads a script over HTTP, an attacker could tamper with that script. Browsers therefore block "active" mixed content, such as scripts and iframes, and increasingly upgrade or block "passive" content like images. The result can be broken layouts, missing features and security warnings.
Browser developer tools. Open the Console; mixed content warnings list each insecure URL. The Network tab shows which requests used HTTP.
Online scanners. Tools can crawl your site and list pages with mixed content.
Search your content. Look for "http://" in your database, theme files and settings.
Old posts and pages often contain hard-coded HTTP links to images. For WordPress, a careful database search-and-replace from "http://yourdomain" to "https://yourdomain" fixes most issues. Use a tool that handles serialised data correctly, and back up first.
Check templates, stylesheets and scripts for hard-coded HTTP URLs, including fonts and background images in CSS. Use HTTPS URLs or root-relative paths for your own files.
Outdated plugins or embeds may load HTTP resources. Update them, find alternatives or check whether the provider supports HTTPS. Almost all reputable services do.
Make sure your CMS site URL settings use HTTPS. In WordPress, both the WordPress Address and Site Address should start with https.
The CSP directive "upgrade-insecure-requests" tells browsers to request HTTP resources over HTTPS automatically. It's a helpful safety net, but fix the source URLs too, because the rule only works if resources are available over HTTPS. Our guide to website security headers explains CSP in more detail.
Redirect all HTTP requests to HTTPS with a single, clear rule at the server, host or CDN level. Be careful not to create loops; see our guide to fixing "too many redirects".
Purge caching plugins, server caches and CDNs, then retest in a private window. Check the padlock and console on key pages.
On sites with hundreds or thousands of pages, checking each page manually isn't practical. Use a site crawler that reports insecure resources, or search your database and code for "http://" references to your own domain and third-party services. Prioritise templates and global elements like headers, footers and scripts, since fixing them resolves issues across many pages.
Email templates, PDFs and downloadable documents may also reference HTTP links to your site. Update them so customers don't land on insecure pages or see warnings after clicking.
If an old service only works over HTTP, it's a strong sign it's outdated and potentially insecure. Look for a modern alternative, or host the resource yourself over HTTPS where licensing allows.
Add mixed content checks to your launch checklist and periodic site audits. New content, embeds and plugins can reintroduce insecure resources over time. Browser developer tools and online scanners make regular checks quick.
After fixing mixed content, check that search engines index the HTTPS versions of pages, with canonical tags and sitemaps updated.
Our maintenance and support team fixes mixed content and HTTPS issues, our web development team handles HTTPS migrations end to end, and our CMS development team cleans up content and plugins safely.
Insecure HTTP resources such as images or scripts loaded on a secure HTTPS page.
Indirectly. Security warnings and broken pages hurt user experience and trust.
Plugins can rewrite URLs on the fly, but fixing URLs at the source is cleaner and more reliable.
This guide is general information, not legal, tax or financial advice, and details such as prices, features and rules can change. Product and company names mentioned are trademarks of their respective owners and are used only to identify those products; UK Technology Hub is not affiliated with or endorsed by them.
Tell us about your project and get a free, fixed quote.
Get a free quoteWhy redirect loops happen, how to trace them, and how to fix the common causes, from HTTPS and CDN settings to www rules and CMS URLs.
What HTTP security headers do, which ones every website should have, how to set them up without breaking features, and how to test them.
A calm, step-by-step guide to diagnosing and fixing a blank white WordPress page, from recovery mode and debug logs to plugins, themes and memory limits.