LifterLMS SSL and HTTPS: Fix Mixed Content and Insecure Pages

Move a LifterLMS site fully to HTTPS, find and fix mixed content in lessons, certificates and builder layouts, and avoid the Force SSL, payment and integration problems that follow an SSL switch.

  • Add as a preferred source on Google
Illustration for “LifterLMS SSL and HTTPS: Fix Mixed Content and Insecure Pages”

Your course site shows "Not secure" in the address bar, or the padlock disappears on some lessons, or Stripe stopped working after you switched to live mode. These are all HTTPS problems, and on a site that takes payments and logins they need fixing properly, not just covering with a plugin.

This guide explains why a LifterLMS site needs HTTPS everywhere, how to make the switch cleanly, where mixed content hides on course sites in particular, and what to update afterwards so payments and integrations keep working. It is written for site owners and the developers who support them.

Why LifterLMS sites need SSL on every page

An SSL certificate lets your site serve pages over HTTPS, which encrypts everything between the student's browser and your server. On a course site that includes passwords, personal details and payments. Several parts of LifterLMS and its add-ons depend on it:

  • Stripe live mode. The LifterLMS documentation states that the Stripe add-on works in live mode only when the server has an SSL certificate and WordPress is configured to use it.
  • Webhooks. Stripe requires an HTTPS endpoint in live mode and supports only TLS 1.2 and 1.3.
  • The LifterLMS REST API. API key authentication is only accepted over HTTPS; on plain HTTP the credentials are ignored. See the LifterLMS REST API and webhooks.
  • Logins. WordPress marks login cookies as secure when you log in over HTTPS, so a site that mixes HTTP and HTTPS pages can log students out as they move between them.
  • Browsers and search engines. Browsers label HTTP pages with forms as not secure, and HTTPS is a basic expectation for search.

Most hosts now include free certificates (often from Let's Encrypt) with one-click installation. The cost is no longer a reason to stay on HTTP.

Force SSL: a setting for HTTP sites only

LifterLMS has a Force SSL option under LifterLMS > Settings > Checkout, described as "Force secure checkout via SSL (https) on the checkout page(s)". It was designed for sites whose address is still HTTP: it sends the checkout and student dashboard to HTTPS and every other page back to HTTP.

That split is no longer good practice, and the redirects it adds can loop behind proxies and CDNs. The LifterLMS SSL documentation warns against enabling it when your site address is already HTTPS. Move the whole site to HTTPS as described below and leave Force SSL unticked. If you already have a redirect loop, our guide to LifterLMS login and redirect loops explains the mechanism and the recovery command.

How to move a LifterLMS site to HTTPS

  1. Install the certificate and confirm https:// versions of your pages load, even with warnings.
  2. Back up the database and files. Include the LifterLMS custom tables.
  3. Change the site addresses. Under Settings > General, change both the WordPress Address and the Site Address to https://. You will be logged out; log in again on the HTTPS address.
  4. Update stored URLs. Replace old http:// links in the database (next section).
  5. Redirect HTTP to HTTPS at the server. Add a permanent 301 redirect in your host's panel, server configuration or .htaccess, so old links and bookmarks still work. Do this at the server, not with Force SSL.
  6. Untick Force SSL in the LifterLMS checkout settings if it was on.
  7. Fix proxy detection if needed. Behind a load balancer or CDN, WordPress may not detect HTTPS. The WordPress HTTPS handbook shows the wp-config.php snippet that reads the X-Forwarded-Proto header.
  8. Clear every cache: page cache, CDN cache and any optimisation plugin's combined CSS and JavaScript files, which may contain old URLs.
  9. Update outside services (see the last section).

Moving from HTTP to HTTPS on the same domain does not, by itself, make LifterLMS think the site is a staging copy, because it compares its stored site URL without regard to the scheme. Changing the domain, including adding or removing www, does. If you change both at once, read our guide to staging sites and recurring payments so renewals are not paused unexpectedly.

Update stored URLs with WP-CLI

Posts, settings and builder data still contain the old http:// address. WP-CLI's search-replace command handles serialised data safely. Run a dry run first:

wp search-replace 'http://example.com' 'https://example.com' \
  --all-tables-with-prefix --skip-columns=guid --dry-run

The report lists how many replacements each table would get. If it looks right, run it again without --dry-run.

  • --all-tables-with-prefix includes tables that WordPress does not register itself, such as the LifterLMS custom tables, as long as they share your table prefix. By default the command only searches registered tables. See the search-replace documentation.
  • --skip-columns=guid leaves post GUIDs alone; they are identifiers, not links.
  • Replace the www form too, if links exist in both forms.

Page builders that store layouts as JSON may save URLs with escaped slashes, such as http:\/\/example.com, which a plain replacement does not match. Elementor has its own Replace URL tool under Elementor > Tools; other builders have similar options. Run the builder's tool after the database replacement and regenerate its CSS.

No command-line access? A search-and-replace plugin from the WordPress plugin directory does the same job. Use one that handles serialised data and offers a dry run.

Find mixed content on course pages

Mixed content means an HTTPS page loads something over HTTP. Browsers block insecure scripts, styles and frames outright, and either upgrade or flag insecure images, audio and video. Either way the padlock disappears, and blocked items simply do not work.

To find it, open the page, open developer tools (right-click, Inspect) and read the Console. Each mixed content warning names the exact URL. Check pages as a student, not only as an admin, because lessons, quizzes and certificates are only visible to enrolled users.

Where mixed content hides on LifterLMS sites

LocationWhat to check
Lesson Video Embed Url and Audio Embed Url fieldsDirect links to self-hosted media files saved with http://; a blocked media file shows as a player that never starts
Course and membership featured video and audioThe same fields on course and membership edit screens
Lesson, quiz and question contentImages, PDFs and embeds pasted years ago
CertificatesBackground images and logos inside certificate templates; check a newly awarded certificate and an old one, because each awarded certificate stores its own copy of the content
AchievementsBadge images on achievement templates
Theme and builder settingsLogos, background images and custom CSS with url(http://...)
Hard-coded scriptsTracking codes, chat widgets and fonts added in theme files or header/footer plugins

Most of these are fixed by the database replacement above. Hard-coded URLs in theme files or custom plugins must be edited in the code. External resources that are only available over HTTP need replacing with an HTTPS source; there is no safe way to load them on an HTTPS page.

A Content-Security-Policy: upgrade-insecure-requests header tells browsers to request HTTP resources over HTTPS automatically. It is a useful safety net while you clean up, but it fails for resources that do not exist on HTTPS, so fix the URLs as well.

What to update after switching to HTTPS

  • Stripe. Re-save the Stripe settings under LifterLMS > Settings > Checkout and confirm Webhook Status shows as installed. Stripe treats a redirect from HTTP to HTTPS as a failed delivery, so an endpoint registered on the old http:// address will fail. Our guide to LifterLMS Stripe webhook errors covers the details.
  • PayPal and other gateways. Check any return or notification URLs set in the gateway account.
  • LifterLMS webhooks and API clients. Update the Delivery URL of webhooks pointing at your own services, and the base URL in any system that calls your REST API.
  • Automation tools. Zapier, Make and similar tools store your site URL in their connections.
  • Email links. Engagement emails and notification templates with hard-coded links.
  • Search Console and analytics. Add the HTTPS property and update the default URL.

Frequently asked questions

Does LifterLMS require SSL?

The free plugin runs without it, but you should not take payments or logins without HTTPS. The Stripe add-on needs SSL in live mode, and REST API keys only work over HTTPS.

Should I use a plugin to force HTTPS?

A server-level redirect plus corrected URLs in the database is cleaner. Plugins that rewrite URLs on every page load add work to every request and hide problems you could fix once.

Why do old certificates still show insecure images?

Each awarded certificate keeps its own copy of the template content, so fixing the template alone does not change certificates already awarded. The database search-replace fixes them, or you can push the corrected template to existing certificates with the Sync Awarded certificates box on the certificate template's edit screen.

Why did students get logged out after the switch?

Their login cookies were set for the HTTP address. They need to log in once on HTTPS. If it keeps happening, some links still point to HTTP.

What to do next

If your site still runs any page over HTTP, schedule the full switch: certificate, site addresses, database replacement, server redirect, then the services list above. If you are already on HTTPS, run a student through a lesson, a quiz and a certificate with the browser console open and fix every warning you see.

For sites with years of content, page builder layouts or several connected services, our LifterLMS migration team handles domain and HTTPS moves without losing renewals, and our support service can clean up mixed content for you. Contact us with your site address.

Add LifterLMS Expert to your preferred sources

Add lifterlmsexpert.com as a preferred source on Google, or open this article in your AI assistant to use it as a source.

  • Add as a preferred source on Google
Free consultation

Prefer expert help over DIY?

Skip the trial and error. Get specialist LifterLMS help and ship faster.

Talk to a LifterLMS Expert Explore our services

Replies within one business day