Why HTTPS Redirects Break (And How DNS-Level Fixes It)

Michel BardelmeijerMichel Bardelmeijer

Michel Bardelmeijer is Tech Lead and Sales at redirect.pizza, where he helps DevOps and IT teams solve domain redirect challenges at scale. Michel has guided organizations like SD Worx, Zurich Airport and Harvard through complex redirect scenarios involving thousands of domains.

Have questions about bulk redirects, HTTPS migrations, or domain consolidations? Connect with Michel on LinkedIn or reach out to the redirect.pizza team.

The SSL handshake happens before the server can send a redirect instruction. No valid certificate means no redirect.

OK, you've set up your redirect. HTTP works perfectly. Type http://olddomain.com and users land exactly where they should. But HTTPS throws a certificate error. The browser shows "Your connection is not private," and users close the tab before your redirect even executes. Here's why it happens and how to fix it.

For domain redirect fundamentals, see our Complete Guide to URL Redirects.

Header for Why HTTPS Redirects Break showing two diagrams, http going through redirect to ok on the left and https stopping at ssl error on the right

Key Takeaways

  • HTTPS redirects fail because browsers validate SSL certificates before processing any redirect code
  • Server-based methods (.htaccess, JavaScript, meta refresh) all require a successful TLS handshake first
  • Three root causes: no certificate on source domain, certificate name mismatch, or redirect executing too late in the request flow
  • DNS-based redirect services provision certificates automatically, as soon as the domain points at them
  • Let's Encrypt provides free certificates with automatic renewal, eliminating manual certificate management

The SSL Handshake Timing Problem

The failure happens because of when the browser validates certificates during an HTTPS request.

Here's the actual sequence when someone types https://olddomain.com:

  1. 1

    DNS lookup
    Browser finds the server IP address.

  2. 2

    TCP connection
    Browser establishes connection to server.

  3. 3

    TLS handshake begins
    Browser and server negotiate encryption.

  4. 4

    Certificate validation
    Browser checks if certificate is valid for olddomain.com.

  5. 5

    Redirect in the HTTP layer
    Browser sends the HTTP request, and the server answers with the redirect. Only reached when step 4 passes.

HTTPS request flow where certificate validation fails and the browser stops, so the redirect in step 5 is never reached

If the certificate check fails at step 4, the browser shows a security warning and stops. Your redirect code sits in step 5 (the HTTP layer), which never gets reached. The redirect is configured correctly. It just never gets the chance to execute.

This design is intentional. Browsers validate certificates before trusting any communication with a server. It prevents attackers from impersonating domains, even temporarily. For a quick comparison of redirect types and when to use each, see 301 vs 302 Redirects.


The 3 Reasons HTTPS Redirects Fail

1. No certificate on source domain

Many domain registrars offer "domain forwarding" features, and they don't all handle HTTPS. Namecheap's URL Redirect Record, for example, can't give the old domain an SSL certificate.

Result: http://old.com redirects successfully. https://old.com shows a certificate error.

Others now cover the homepage and stop there. GoDaddy adds HTTPS to forwarded domains on its own nameservers, but in our test in November 2026 it forwarded the homepage and nothing else: every deeper URL returned a 404.

Chrome tries https:// first when someone types the domain, and falls back to http:// when HTTPS fails, so those visitors still get through. Links, bookmarks and search results that already use https:// get no fallback. For a step-by-step walkthrough of setting up HTTPS redirects with automatic certificate provisioning, see How to Redirect with HTTPS.

Case study: How Digip plugged the HTTPS redirect gap that was costing it deals

2. Certificate name mismatch

You have a valid SSL certificate for newdomain.com. Users request https://olddomain.com. The server presents the certificate for newdomain.com, but the browser is requesting olddomain.com.

The browser rejects this as a potential security threat. Certificate names must match the requested domain. This protects users from impersonation attacks. If a certificate for bankofamerica.com could be used on fake-bank.com, phishing would be trivial.

Your redirect code would fix the mismatch, but it never runs because the certificate validation fails first.

3. Redirect happens too late in request flow

Server-based redirect methods (.htaccess, JavaScript, meta refresh tags) all require a successful HTTPS connection before they can execute. The redirect code never runs because the TLS handshake fails first when the certificate is invalid. These methods work perfectly once you have a valid certificate. The challenge is getting that certificate on your source domain in the first place.


Why DNS-Configured Redirect Services Solve This

The architectural difference is when certificates get provisioned.

Traditional server-based approach

    1. 1

      User requests https://old.com

    2. 2

      Server receives request

    3. 3

      Server must present valid certificate for old.com

    4. 4

      If certificate invalid, browser shows error, user leaves

    5. 5

      Redirect never executes

    DNS-based approach

      1. 1

        Setup: old.com points at the service, which provisions a certificate for it automatically

      2. 2

        Certificate exists and is valid

      3. 3

        User requests https://old.com

      4. 4

        TLS handshake succeeds (certificate already exists)

      5. 5

        Redirect executes

      6. 6

        User reaches destination

      The key difference: the service provisions the certificate itself, as soon as the domain points at it, so nobody has to install one. When users arrive after that, the certificate already exists and is valid for the domain they requested.

      Let's Encrypt provides free certificates with automatic renewal. The infrastructure handles provisioning and renewal, removing the manual step that breaks server-based redirects.

      For organizations redirecting multiple subdomains (blog.old.com, shop.old.com, help.old.com), DNS-based services can provision wildcard certificates covering *.old.com. This eliminates the need to provision individual certificates for each subdomain: a single wildcard certificate covers every current and future subdomain one level deep, such as shop.old.com, but not old.com itself or a.shop.old.com.


      Troubleshooting HTTPS Redirect Failures

      If your HTTPS redirect isn't working, diagnose the problem before trying solutions. For more common redirect problems beyond certificate issues, see our troubleshooting guide.

      Test HTTP first

      Visit http://olddomain.com (explicitly type http://). If this works but HTTPS doesn't, you have a certificate problem, not a redirect problem. Your redirect configuration is fine. You need to address certificates.

      Check the certificate

      Use SSL Labs Server Test (ssllabs.com/ssltest/) to check what certificate is being served for your domain. Look for:

      ResultWhat it means
      Certificate name mismatchThe certificate is for the wrong domain
      Certificate not trustedThe certificate chain is incomplete
      No certificate foundThe server has no HTTPS configured

      Verify DNS propagation

      DNS changes can take from a few minutes up to 24 hours to propagate, depending on TTL settings. If you just updated your DNS records, some users may still be hitting the old server. Use whatsmydns.net to check propagation status across different locations.

      Clear browser cache

      Browsers cache certificates and HSTS policies. Test in an incognito/private window to rule out caching issues.

      Check certificate expiry

      Let's Encrypt certificates are valid for 90 days, and new ones drop to 64 days in February 2027 and 45 days in 2028. Manually managed certificates often expire. An expired certificate triggers the same browser warnings as a missing certificate. If you need to set up a domain redirect with automatic certificate handling, DNS-based services eliminate expiry as a failure point.

      Diagnose before you fix: test HTTP first, check the certificate, verify DNS propagation, clear the browser cache, check certificate expiry


      Frequently Asked Questions

      Provision an SSL certificate on the source domain before you rely on the redirect. DNS-based redirect services handle this automatically by requesting a certificate as soon as the domain points at them. Server-based methods (.htaccess, nginx, JavaScript) require you to obtain and install a certificate manually on the old domain first. Without a valid certificate, the browser blocks the connection before your redirect code can execute.

      The most common cause is a missing or expired SSL certificate on the source domain. Browsers validate certificates during the TLS handshake, which happens before any redirect instruction is processed. Check your certificate status at ssllabs.com/ssltest. If HTTP redirects work but HTTPS does not, the problem is your certificate, not your redirect configuration.

      Yes, if anyone visits the HTTPS version of your old domain. Browsers require a valid certificate before they process any server response, including redirects. Without one, visitors see a "Your connection is not private" error. Since most modern browsers default to HTTPS, this affects the majority of your traffic.

      Yes. A wildcard certificate (for example, *.example.com) covers every subdomain one level deep, such as blog.example.com, but not example.com itself or a.blog.example.com. This eliminates the need to provision individual certificates for blog.example.com, shop.example.com, and every other subdomain at that level. DNS-based redirect services can provision wildcard certificates automatically, though they typically require an _acme-challenge NS record for validation.

      The redirect stops working for HTTPS traffic. Browsers treat an expired certificate the same as a missing one: they block the connection and show a security warning. Visitors never reach your redirect. Automatic certificate renewal prevents this.

      Related Guides

      Related Use Cases


      Ready to redirect?

      To set up HTTPS redirects without manual certificate management, redirect.pizza provides DNS-level redirect management with automatic SSL certificate provisioning via Let's Encrypt and ZeroSSL. Get started for free.

      Domain redirects delivered hassle-free

      Get started right away

      • Free plan
      • No creditcard required
      Serving millions of redirects for
      Warner Bros.
      Harvard
      CalTech
      Jaguar
      Palo Alto Networks
      Cloudera
      Raymond James
      ElevenLabs
      Visit California
      FACEIT
      Red Bull
      Boels Rental
      Bam
      Nando's
      Culture Gouv FR
      Visma
      team.blue
      SD Worx
      Unit4
      Kneipp
      Zurich Airport
      SRF
      Kaefer
      DC Thomson
      Hirslanden
      C.H. Beck
      IU
      Framery
      Mehiläinen
      Intersport
      JAKO
      Steiff
      Switzerland Tourism
      Concept2
      Teamleader
      Ascension
      Chargify
      JBS SA
      NESN
      Wunderman Thompson
      Lerner Publishing Group
      RGF Staffing
      Apollo
      MCC
      Dansk Erhverv