Skip to content
FunnelGuard

Fix guide by FunnelsGuard

HTTP not redirecting to HTTPS: how to find and fix it

SEO-083High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

HTTPS is the secure version of the web address. When someone types or clicks http://example.com/pricing, your server should answer with a 301 redirect (a permanent move) to https://example.com/pricing. If it answers with a normal page instead, the insecure version stays live next to the secure one.

This often happens after an SSL certificate is installed. The certificate makes https work, but nothing forces visitors onto it. It can also happen on only some paths, on the www or non-www host, or on a subdomain.

Why it costs you leads or sales

Old links, ads, email campaigns and bookmarks often still point at http. Each one lands on a page that browsers may flag as not secure, which hurts trust on a form or checkout page. Search engines also find two URLs with the same content and may pick the wrong one to show.

Tracking suffers too. Cookies set on https may not be readable on http, and form posts or payment steps can behave differently across the two. Sessions can split and conversions can be credited to the wrong source.

What happens to a visitor on an http link
  1. Click old http linkAd, email or bookmark uses http://
  2. No redirectServer serves the page on http
  3. Not secure warningBrowser flags the page
  4. Form or checkoutTrust drops, tracking may split

The break is the missing redirect. Everything after it runs on the insecure copy.

Where traffic can end up when both versions loadExample numbers
Where traffic can end up when both versions load (example)https (secure): 70 % of visits; http (not secure): 30 % of visits027547030https (secure)http (not secure)% of visits

Example: illustrative split of visits between the two copies of a site. Your own numbers will differ.

How to check if your site has it

Test the http version of your site
  1. Type the http address by hand

    Open a private window and enter http://yourdomain.com. The address bar should change to https:// within a moment. If it stays on http, the redirect is missing.

  2. Test every host variant

    Repeat for http://www.yourdomain.com, and for an inner page such as http://yourdomain.com/contact. Each should land on its https twin.

  3. Read the response headers

    Run the command below. You want a 301 status and a Location header that starts with https://.

Check the redirect from a terminalbash
curl -I http://example.com/pricing

# Good:
# HTTP/1.1 301 Moved Permanently
# Location: https://example.com/pricing

# Bad: HTTP/1.1 200 OK (the http page loads)

How to fix it

First make sure a valid SSL certificate covers your domain and www. Then add the redirect in one place only. Stacking rules in a plugin, the server and a CDN can cause loops. Pick the method for your platform.

Force https by platform
  1. Update site addresses

    In Settings > General, change WordPress Address and Site Address to start with https://.

  2. Add the redirect

    Use your host's force-HTTPS option if it has one, or add the .htaccess rule from the Custom code tab above the WordPress block. Avoid running two redirect plugins together.

  3. Fix stored links

    Replace old http:// URLs in content with a search-and-replace tool so pages do not link to the old version.

Apache: redirect all http to httpshtaccess
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Nginx: redirect port 80 to httpsnginx
server {
  listen 80;
  server_name example.com www.example.com;
  return 301 https://example.com$request_uri;
}
Before and after the fix

No redirect

  • http:// page returns 200 and loads
  • Browser may show Not secure
  • Two URLs for every page

301 to https

  • http:// returns 301 to the https URL
  • Visitors always land on the secure page
  • One URL per page for search and tracking

How to confirm it's fixed

Confirmation checks
  • curl -I on http://yourdomain.com returns 301 and a Location starting with https://
  • http://www.yourdomain.com also ends on your preferred https host
  • An inner page and a URL with ?utm_source=test keep their path and parameters
  • The redirect takes one hop, with no loop
  • No browser Not secure warning on the landing page, form or checkout
  • Internal links, canonical tags and the sitemap use https URLs

How to prevent it happening again

The redirect can disappear after a migration, a host change, a CDN change, a plugin update or a staging copy going live. Keep one owner for the rule and re-test after any of those changes. Update links, canonical tags and sitemaps to https so the redirect is a safety net, not the main route.

Habits that help
  • Set the redirect in one place only
  • Test http after every hosting, DNS or CDN change
  • Renew certificates before they expire
  • Use https in all ad and email links
  • Re-check after plugin or theme updates

How FunnelGuard handles this

FunnelGuard detects this issue today. A robot visitor requests the http version of your pages as part of its scheduled checks and flags the problem when the http address does not move to https. If the failure repeats from a second region, you get one alert (email, Slack, Teams, WhatsApp, webhook or PagerDuty) with a screenshot and a likely cause.

The Free plan covers 1 site and 2 journeys with daily checks and no card. Paid plans start with a 3-day free trial. A free read-only website audit is also available.

Questions people ask

Why is my site still loading on http after I installed an SSL certificate?

The certificate only makes https possible. It does not force visitors onto it. You still need a 301 redirect from http to https at the server, host, CDN or platform setting.

How do I redirect http to https?

Add a permanent 301 redirect from every http URL to the same path on https. On Apache use a RewriteRule in .htaccess, on Nginx a port 80 server block with return 301, and on hosted builders switch on the SSL or HTTPS redirect setting.

Does http not redirecting to https hurt SEO?

It can. Search engines may treat the http and https pages as duplicates and index the wrong one, and link signals can be split. A single 301 to https gives them one clear address.

Should I use a 301 or 302 for http to https?

Use a 301. It tells browsers and search engines the move is permanent. A 302 signals a temporary move and is not the right choice for this.

How can I test if http redirects to https?

Run curl -I http://yourdomain.com and look for a 301 status and a Location header that starts with https://. You can also type the http address in a private window and see if the address bar switches to https.

Why do I get a redirect loop after forcing https?

Usually two layers both redirect, or a CDN talks to your server over http while your server forces https. Keep the rule in one place and set the CDN's SSL mode to match your origin.

Will the https redirect remove my UTM parameters?

A correct rule keeps the path and query string, so UTMs and gclid stay in place. Test a URL with parameters after the change to be sure.

Can FunnelGuard tell me if http is not redirecting to https?

Yes. FunnelGuard checks the http version of your pages on a schedule and alerts you if it does not move to https, with a screenshot and a likely cause.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

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.