Skip to content
FunnelGuard

Fix guide by FunnelsGuard

HTTP to HTTPS redirect missing or slow: how to fix it

PRF-068Medium impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

Your site should only be reachable over HTTPS, the encrypted version of web addresses. Anyone who types or follows an old http:// link should be sent automatically to the https:// version. That automatic hop is a redirect.

The issue has two forms. Missing: the http URL loads as a normal page, or shows an error or certificate warning. Slow: the redirect exists but takes a long time, often because it is done by a plugin after the page has started loading, or it is part of a chain of several redirects.

Why it costs you leads or sales

Old http links live on in ads, email signatures, QR codes, directory listings and social profiles. Each one is a visitor you already paid for or earned.

What goes wrong for visitors and campaigns
  • Browsers may show 'Not secure' on the http page, and forms on it can trigger warnings, so people leave before filling them in.
  • A slow redirect adds a full round trip before the first byte of your page.
  • The http and https versions can be treated as separate pages, splitting analytics and link signals.
  • A badly written redirect can drop the query string, so gclid and UTM parameters are lost and conversions are not attributed.
  • Tracking and cookies set on the http copy may not carry over to https.
Where an http click goes wrong
  1. Click on http:// linkOld ad, email or listing
  2. Redirect to httpsMissing, slow or strips the query string
  3. Landing pageWarning shown or loaded late
  4. Form or checkoutVisitor leaves before this step
  5. Conversion trackinggclid or UTMs missing

The visitor clicks an old http link and the redirect fails or drops the parameters, so everything after it is affected.

How to check if your site has it

Test the redirect yourself
  1. Open the http version in a private window

    Type http://yourdomain.com and a deep page such as http://yourdomain.com/pricing. You should end on https with a padlock and no warning.

  2. Inspect the headers with curl

    Run the command below. You want one 301 response with a Location header pointing to the https URL, and a small total time.

  3. Test with a query string

    Request http://yourdomain.com/?utm_source=test&gclid=abc and confirm the Location header keeps both parameters.

  4. Test both www and non-www

    Check http://www.yourdomain.com too. If you see two hops, that is a separate chain problem to tidy up.

Check the redirect and its timingbash
curl -sIL -o /dev/null -w '%{http_code} %{url_effective} %{num_redirects} redirects, %{time_total}s\n' 'http://yourdomain.com/?utm_source=test&gclid=abc'

# See each hop
curl -sI 'http://yourdomain.com/?utm_source=test&gclid=abc'
How to read the result
What you seeMeaningAction
200 on the http URLNo redirect, http page is servedAdd the redirect
301 straight to https with the query stringCorrectNone
302 or 307Temporary redirect, weaker signal for search enginesChange to 301 once stable
Two or more redirectsChain adds delayPoint http straight to the final https URL
Location loses ?gclid=Query string droppedFix the rule to keep it
Connection refused or certificate errorNothing listens on port 80 or on httpsFix hosting or certificate setup

How to fix it

The fastest redirect is one done at the server or CDN level, before any application code runs. Use the platform setting if there is one, and only add rules by hand on custom hosting. Make sure a valid SSL certificate is active first.

Force HTTPS by platform
  1. Update the site URLs

    In Settings > General set both WordPress Address and Site Address to https://. Then take a backup before any bulk change.

  2. Redirect at server level

    Add the .htaccess rule (Apache) or nginx block shown below, or switch on the force-HTTPS option in your host's control panel, which is usually faster than a plugin.

  3. Fix mixed content

    If pages still show warnings, update hard-coded http:// image and script links in the content and theme.

nginx: one 301 from http to https, keeping the query stringnginx
server {
  listen 80;
  listen [::]:80;
  server_name example.com www.example.com;
  return 301 https://example.com$request_uri;
}
Apache .htaccess: force HTTPShtaccess
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://example.com/$1 [L,R=301]
Redirect before and after

Before

  • http:// page loads with a 'Not secure' label
  • Or a plugin redirects after the page starts loading
  • Two or three hops before the final page
  • Query string sometimes dropped

After

  • One 301 at the server
  • Path and query string preserved
  • Final page is https with a padlock
  • Old links and ads keep working

How to confirm it's fixed

Confirmation checks
  • curl on http://yourdomain.com returns a single 301 to https.
  • A deep URL with ?utm_source=test&gclid=abc keeps both parameters after the redirect.
  • http://www and http:// non-www both reach the same final https URL in one hop.
  • The final page shows a padlock and no mixed-content warning.
  • Redirect time is a small fraction of your page load time.
  • GA4 Realtime or your ad platform shows the landing visit with its source intact.

How to prevent it happening again

Keep the redirect healthy
  • Renew certificates automatically and watch their expiry dates.
  • Re-test the redirect after changing host, CDN, DNS or domain settings.
  • Re-test after migrations, theme changes and redirect or SEO plugin updates.
  • Use https:// in all new ads, emails and links, so the redirect is only a safety net.
  • Keep one rule in one place, rather than the same redirect in a plugin, the server and the CDN.

How FunnelGuard handles this

FunnelGuard detects this today. Its redirects check follows the redirect path a visitor would take when your journey URL is opened and flags problems such as a missing or slow http to https redirect. It runs on your schedule from the EU or the US, and a failure is re-checked from a second region before one alert goes out by email, Slack, Teams, WhatsApp, webhook or PagerDuty, with a screenshot and a likely cause.

Test visits are marked with utm_source=funnelguard, fg_test=1, an fg_test cookie and their own user agent. The Free plan covers 1 site and 2 journeys with daily checks and no card. Paid plans have a 3-day free trial, and a free read-only website audit is also available.

Frequently asked questions

Questions people ask

Why is my http to https redirect not working?

Common causes are no SSL certificate, a missing server rule, a CDN or proxy loop, or a plugin that conflicts with the host's own redirect. Run curl -I on the http URL to see which status code and Location header you get, then fix it at the server or platform level.

How do I redirect http to https?

Add a single 301 redirect at the server or CDN that sends every http URL to its https twin, keeping the path and query string. On hosted builders such as Shopify, Webflow, Wix and Squarespace, turn on the SSL setting instead of writing rules.

Should I use a 301 or 302 redirect for HTTPS?

Use a 301, which is permanent. It tells browsers and search engines that the https address is the one to keep. A 302 is for temporary moves and can be treated less strongly.

Does the http to https redirect remove gclid and UTM parameters?

It should not. A correct rule keeps the query string, such as nginx's $request_uri. If your rule drops it, ad clicks lose their gclid and UTMs, and conversions may not be attributed. Test with a URL that includes parameters.

Does a slow HTTPS redirect hurt my site?

Yes, a little each time. The browser must complete the redirect before it can request the real page, so the delay is added to every visit that starts on http. It is worse when there are several hops in a chain.

Is a plugin or a server rule better for forcing HTTPS?

A server or CDN rule is usually faster, because it answers before your application loads. Plugins work but run later, so use one only if you cannot edit server settings.

How can I monitor my http to https redirect automatically?

FunnelGuard's redirects check follows the redirect path of your journey URLs on a schedule and alerts you if the http to https redirect is missing or slow. You can also run curl checks by hand after each change.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: redirects matcher.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.