How to Fix Broken Links After Changing to HTTPS

Updated June 2026

7 min read

Your progress

Nova — GBP Management 12AM Service

We handle everything in this guide — every week.

Stop managing GBP manually. Nova runs the full system: posts, photos, reviews, Q&A, and monthly rank reports.

  • 3–4 posts/week, written & published
  • Review management included
  • Monthly heatmap report
  • Starts at $600/mo
See Nova Plans →

Related Articles

Free · No Commitment

How well is your GBP performing?

Get a heatmap rank report showing exactly where you appear across your service area.

Get My Free Audit →

Table of Contents

Reading Time: 7 minutes

Migrating your website from HTTP to HTTPS is one of the best technical decisions you can make for security, user trust, and SEO. But if the migration isn’t executed carefully, it creates a cascade of broken link issues — internal links, external links, sitemap URLs, and even references embedded in your code can all break in ways that undermine the very SEO improvements the migration was supposed to deliver. This guide walks you through every category of broken link that the HTTP to HTTPS transition creates and exactly how to fix each one.

Why Do Links Break After Moving From HTTP to HTTPS?

Links break during the HTTP to HTTPS migration for a fundamental reason: HTTP and HTTPS are treated as different URL schemes by browsers, servers, and search engines. A link pointing to http://www.yoursite.com/page/ is technically different from a link to https://www.yoursite.com/page/ even though both lead to the same content on your migrated site.

Without explicit redirection configuration, visitors and crawlers arriving at the old HTTP URLs will either encounter a broken connection (if your server no longer serves HTTP at all) or continue to reach the non-secure HTTP version (if your server still serves both). Neither outcome is desirable.

Beyond the protocol change itself, HTTPS migrations commonly surface a related problem called “mixed content.” This occurs when an HTTPS page loads embedded resources — images, scripts, stylesheets, iframes from HTTP URLs rather than HTTPS URLs. Browsers block or warn users about mixed content, which can visually break pages and undermine the security signal the HTTPS migration was meant to establish.

How to Set Up a Site-Wide 301 Redirect for HTTPS

The cornerstone of a successful HTTP to HTTPS migration is a site-wide 301 redirect that automatically sends all HTTP traffic to the equivalent HTTPS URL. This should be implemented at the server level for maximum reliability.

For Apache Servers (.htaccess)

Add the following rules to your .htaccess file (at the root of your site):

RewriteEngine On

RewriteCond %{HTTPS} off

RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

This catches all HTTP requests and redirects them to the equivalent HTTPS URL with a permanent 301 redirect.

📍
Free GBP Audit

See exactly where your profile stands right now.

Our GBP audit shows your current rank position across your market, how your profile completeness scores against competitors, and the specific gaps holding you back from the Map Pack.

For Nginx Servers

In your Nginx server block configuration:

server {

    listen 80;

    server_name yoursite.com www.yoursite.com;

    return 301 https://$server_name$request_uri;

}

For WordPress with a Plugin

The Really Simple SSL plugin for WordPress handles the site-wide HTTPS redirect automatically after your SSL certificate is installed. It also updates WordPress’s site URL settings to use HTTPS and fixes many common mixed content issues automatically.

Fixing “Mixed Content” Errors After Installing an SSL Certificate

Mixed content errors occur when a secure HTTPS page loads resources (images, scripts, CSS files) from HTTP URLs. Browsers block or warn about these insecure resources, which can break page appearance and undermine your SSL certificate’s effectiveness.

Identifying Mixed Content Issues

Open your browser’s Developer Tools (F12), navigate to the Console tab, and load each key page of your site. The browser will flag mixed content warnings in red, identifying every HTTP resource being loaded on the HTTPS page.

For a site-wide audit, tools like Why No Padlock?, SSL Check (SSL Shopper), and Screaming Frog can identify mixed content across multiple pages simultaneously.

Fixing Mixed Content

For images, scripts, and stylesheets hardcoded with HTTP URLs in your HTML or CMS content: update the URLs to use HTTPS. In WordPress, the Better Search Replace plugin can bulk-update http://yoursite.com to https://yoursite.com across your entire database in one operation.

For resources loaded from external CDNs or third-party services: check whether those services offer HTTPS URLs for their resources (most do) and update your references accordingly.

For dynamically loaded resources configured in your CMS settings: update the site URL, WordPress address, and any media or asset base URL settings to use HTTPS.

Updating Internal Links to Use the HTTPS Protocol

Even after the site-wide redirect is in place, having HTTP internal links on your HTTPS pages creates a minor but real SEO inefficiency every HTTP internal link triggers a redirect before delivering the user or crawler to the HTTPS destination. This adds latency and marginally reduces the link equity flowing through each internal link.

The cleanest fix is to update all internal links in your content to use HTTPS URLs directly. In WordPress, the Better Search Replace plugin can perform a database-wide find-and-replace of http://yoursite.com with https://yoursite.com. Run this operation on your posts, pages, custom post types, and any relevant options or meta values.

After running the database update, verify by re-crawling your site with Screaming Frog and filtering for internal links that still use HTTP these should now be zero or very close to it.

How to Update Your Sitemap and robots.txt for HTTPS

Your XML sitemap and robots.txt file both need to be updated to reflect your new HTTPS URLs as part of a complete migration.

XML Sitemap

All URLs in your XML sitemap should use HTTPS. If you’re using an SEO plugin like Yoast SEO or Rank Math in WordPress, the sitemap is automatically regenerated using your WordPress Site URL setting updating that setting to HTTPS (via WordPress Settings → General) will result in a sitemap with HTTPS URLs. Manually verify by viewing your sitemap (typically at https://yoursite.com/sitemap.xml) and confirming all listed URLs begin with HTTPS.

robots.txt

If your robots.txt file references a sitemap URL (which is best practice), ensure that reference uses the HTTPS version of your sitemap URL: Sitemap: https://www.yoursite.com/sitemap.xml. Also check that any specific Allow or Disallow directives in robots.txt work correctly in the HTTPS context.

Notifying Google Search Console About Your Protocol Change

After completing the technical migration, notify Google through Search Console to ensure the transition is properly recognized and any negative indexing impact is minimized.

Add and Verify the HTTPS Property

In Google Search Console, add your HTTPS URL (https://www.yoursite.com) as a new property if it isn’t already verified. Verify ownership using one of the available verification methods (HTML file, HTML tag, Google Analytics, or DNS record).

Submit Your Updated Sitemap

In the new HTTPS property, submit your updated HTTPS sitemap under Sitemaps → Add a new sitemap. This prompts Google to begin crawling and indexing your HTTPS pages specifically.

Monitor Migration Progress

Over the following weeks, monitor the Pages report in Search Console to confirm that your HTTPS pages are being indexed and that your HTTP pages are showing up as redirects rather than as separate indexed content. Track organic traffic in Google Analytics to confirm there’s no sustained traffic drop from the migration.

Common Migration Errors That Cause Broken Links

Several specific errors regularly occur during HTTP to HTTPS migrations and create post-migration broken link problems. One critical step in ensuring a smooth migration is to identify broken links in your content. By systematically reviewing your site, you can uncover URLs that may have been overlooked during the transition. Addressing these issues promptly will enhance user experience and improve search engine rankings.

Redirect Loops

Redirect loops occur when the redirect configuration sends HTTPS URLs back to HTTP (or creates an infinite redirect chain). These cause “ERR_TOO_MANY_REDIRECTS” errors. Test your redirect with an HTTP to HTTPS redirect checker after implementation to confirm the redirect chain is clean and terminates at a 200 response.

Non-WWW / WWW Inconsistency

If your redirects handle HTTPS but don’t also consolidate www vs. non-www variations, you may end up with users and crawlers reaching your site via four different URL formats (http://, https://, http://www., https://www.). Ensure your redirects canonicalize to a single preferred format: https://www. or https:// (non-www), consistently.

Hardcoded HTTP URLs in Theme or Plugin Files

PHP template files, plugin configuration, and theme settings may contain hardcoded HTTP URLs that continue to generate HTTP resource requests even after the database is updated. Audit your theme files and active plugins for hardcoded HTTP references.

CDN and External Asset HTTP References

Nova by 12AM Agency

This is the work we do for you. Every week, without exception.

Managing GBP at this level takes 6–8 hours a week when done right. Nova handles the entire system — posts, photos, reviews, Q&A, citations, heatmap tracking — so you can focus on running your business.

3–4 algorithmic posts/week
Geo-tagged photos, formatted & published
Review management and response
Monthly rank heatmap report
Dynamic Q&A management
GBP Optimization Score tracking
See Nova Plans → Month-to-month available. No lock-in required.

Content Delivery Networks configured with HTTP-only URLs for your assets will generate mixed content errors on all pages. Update your CDN configuration to use HTTPS URLs for all delivered assets.

Verifying SSL Installation to Prevent Security Warnings

A properly installed SSL certificate is the prerequisite for everything else in the HTTPS migration. Verifying the installation correctly before beginning the migration saves significant troubleshooting later.

Use SSL Server Test (Qualys SSL Labs) to run a comprehensive check of your SSL certificate installation. This free tool evaluates certificate validity, chain completeness, protocol support, and common configuration errors and gives your installation an overall grade from A to F. Aim for at least an A rating before proceeding with migration.

Check that your SSL certificate covers all variations of your domain that users might access: the bare domain (yoursite.com), the www subdomain (www.yoursite.com), and any other relevant subdomains. If you run subdomains that serve content, they need their own SSL certificate or a wildcard certificate that covers them.

Verify the certificate’s expiration date and ensure you have an automated renewal process in place (Let’s Encrypt certificates renew automatically via certbot; commercial certificates should be renewed well in advance of expiration).

Frequently Asked Questions

Does changing to HTTPS hurt my SEO temporarily?

A properly executed migration causes minimal to no lasting SEO impact. However, there may be a brief dip in rankings and traffic in the weeks immediately following migration as Google re-crawls and re-evaluates your site in its HTTPS form. This typically resolves within two to four weeks. Poorly executed migrations without proper redirects, updated sitemaps, or Search Console configuration can cause longer-lasting ranking impacts.

Do I need to update external backlinks to HTTPS?

You cannot directly update external backlinks on sites you don’t control. However, your 301 redirects from HTTP to HTTPS ensure that the link equity from those backlinks passes through to your HTTPS pages. Over time, you may reach out to high-value linking sites to request they update their links to your HTTPS URLs but this is a low-priority task given that 301 redirects preserve approximately 99% of link equity.

How do I find mixed content issues on my site?

Open your browser’s Developer Tools (F12), go to the Console tab, and navigate to each page — the browser will flag mixed content warnings. For site-wide scanning, use Why No Padlock?, Screaming Frog (configured to check response codes for all linked resources), or JitBit’s Broken Link Checker.

Is it necessary to redirect every single page individually?

No. A site-wide redirect rule (in .htaccess, Nginx config, or equivalent) handles all pages simultaneously with a single configuration change you don’t need individual redirect rules for each page. Page-level redirect rules are only needed for URLs that have changed path in addition to the HTTP to HTTPS change.

12 am agency

Conclusion

Moving to HTTPS is a straightforward win for both security and SEO, but only when the migration is executed completely. The four pillars of a clean HTTPS migration are: a properly configured site-wide 301 redirect, resolution of all mixed content issues, updated internal links and sitemap URLs, and prompt notification of Google through Search Console. Neglecting any of these pillars leaves broken links and redirect inefficiencies that quietly erode the benefit of the migration. Follow this guide methodically, verify each step, and your HTTPS transition will deliver the security and ranking benefits it promises.

Your Next Step

Find out where your GBP actually ranks — for free.

Most business owners are guessing about their local rank. Our free GBP audit shows you exactly where you stand across your market, what your competitors are doing better, and which fixes will move the needle fastest.

Robert Portillo

CEO & Co-Founder, 12AM Agency

12 years of LLM and SEO research. Former telecom engineer. I write about the intersection of AI and local search — and what it actually means for businesses trying to get found.
By clicking continue or sign up, you agree to our linked Terms of Use and Privacy Policy.
Audit Your Website’s SEO Now!
Enter the URL of your homepage, or any page on your site to get a report of how it performs in about 30 seconds.