How to Move a LifterLMS Site to a New Host or Domain Safely

A step-by-step plan for moving a LifterLMS site to a new host or domain without missed renewals, double charges, broken webhooks or locked-out students, including the LifterLMS checks most migration plugins miss.

  • Add as a preferred source on Google
Illustration for “How to Move a LifterLMS Site to a New Host or Domain Safely”

Moving a brochure site to a new host is routine. When you move a LifterLMS site to a new host or domain, it is not, because the site takes money on a schedule, sends and receives webhooks, protects files, and has students logged in at all hours. A copy-and-paste migration that is fine for a blog can lead to missed renewals, duplicate charges or a support inbox full of "my course has gone" messages.

This checklist is for site owners and developers planning a host change, a domain change, or both. It follows the order we use: prepare, copy, fix the LifterLMS-specific settings, cut over, and verify. It assumes you already know how to move WordPress itself; the focus is on what is different for an LMS.

Five things make a LifterLMS move different from an ordinary WordPress move:

  • Renewals run in the background. Recurring payments, access expirations and delayed emails are scheduled actions. If two copies of the site both run them, customers can be charged twice. If neither runs them, renewals are missed.
  • LifterLMS watches its own URL. It stores a "lock" of the site URL and, when the URL changes, treats the site as a possible clone and disables automatic recurring payments until you confirm.
  • Gateways call your site. Stripe, PayPal and LifterLMS's own outgoing webhooks are tied to URLs that change with the domain.
  • Protected media depends on the web server. LifterLMS protects certain uploads with rules written to an .htaccess file, which only Apache reads.
  • LifterLMS has its own database tables. Several tools only process WordPress's registered tables unless you tell them otherwise.

Before the move: an inventory

Write these down from the current site before you touch anything. Each one becomes a check on the new site.

ItemWhere to find itWhy it matters
Payment gateways in useLifterLMS > Settings > CheckoutWebhook URLs and API keys may need updating.
Upcoming renewals in the next 72 hoursLifterLMS > Status > Scheduled Actions, pending llms_charge_recurring_paymentChoose a cut-over window with few renewals.
Outgoing webhooksLifterLMS > Settings > REST API, WebhooksReceivers may filter by your domain.
API keys used by other systemsLifterLMS > Settings > REST API, API KeysThe systems using them must point at the new domain.
Add-on licensesLifterLMS > Add-ons & more, or wp llms license listLicenses are activated against the site URL.
Web server typeAsk the old and new hostApache to Nginx changes how protected media works.
PHP and database versionsTools > Site Health > InfoLifterLMS 10.x needs PHP 7.4 or newer; match or improve.
Email sendingYour SMTP or email pluginA new domain needs SPF, DKIM and DMARC records.
Cron setupwp-config.php and the server's crontabA server cron job does not move with the files.

Take a full backup of files and database at this point, and confirm you can restore it. Our guide to LifterLMS backup and recovery explains what a restorable backup of a course site includes.

Step 1: Copy the site without starting a second copy of the business

The aim is to have a working copy on the new host that cannot charge anyone until you say so.

  1. Copy the files and database with your usual tool: a migration plugin, the new host's import service, or rsync plus a database dump.
  2. Before the copy loads in a browser, mark it as a clone. Add define( 'LLMS_SITE_IS_CLONE', true ); to the new site's wp-config.php. LifterLMS then treats it as a clone and keeps automatic recurring payments off regardless of the URL check.
  3. Keep WP-Cron quiet on the new copy until cut-over if your host lets you, by adding define( 'DISABLE_WP_CRON', true ); and not yet adding a server cron job.
  4. Disable outgoing LifterLMS webhooks on the copy by setting each one's Status to Paused or Disabled, so test activity does not reach your CRM.

If you are only changing hosts and keeping the same domain, you will typically test the new copy on a temporary URL or with a hosts-file entry. Our article on staging sites and recurring payments explains the URL lock and these constants in detail.

Step 2: Change the domain properly (domain moves only)

If the domain changes, replace the old URL in the database with WP-CLI's search-replace command, which handles serialized data safely. Run it as a dry run first:

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

# Review the report, then run it for real
wp search-replace 'https://old.example.com' 'https://new.example.com' \
  --all-tables-with-prefix --precise --skip-columns=guid
wp cache flush
wp rewrite flush

--all-tables-with-prefix matters here. LifterLMS creates its own tables, such as wp_lifterlms_user_postmeta, wp_lifterlms_events and wp_lifterlms_webhooks, and does not register them with WordPress, so a default run only touches the core tables. Including every prefixed table covers them and any other plugin tables too.

Then visit Settings > Permalinks and click Save, check that course, lesson and checkout pages load, and open a certificate to confirm its images display.

Step 3: Fix the LifterLMS-specific settings

Payment gateways

  • Stripe. The LifterLMS Stripe add-on creates its webhook when you connect your account. After a domain change, check the webhook endpoints in your Stripe dashboard: the new domain needs an active endpoint, and the old one should be removed once the old site is gone. Reconnecting Stripe from the add-on's settings is often the quickest fix.
  • PayPal. Check the notification and webhook URLs configured for the LifterLMS PayPal add-on and update them to the new domain.
  • Keys. Live and test keys usually move with the database. Confirm the live keys are in place before cut-over and that the copy is not in test mode by accident.

LifterLMS webhooks and API consumers

Webhook delivery URLs point at other systems, so they normally stay the same. What changes is the sender: tell anyone who filters by your domain or IP address. Systems that call your LifterLMS REST API, such as Zapier or a custom integration, must switch to the new domain. API keys themselves keep working, because they are not tied to the URL.

Protected media

LifterLMS stores protected uploads in a lifterlms folder inside your uploads directory and writes an .htaccess file there to block direct access. Nginx ignores .htaccess, so if the new host runs Nginx, add an equivalent rule to the server configuration or those files may become publicly reachable by URL. Our guide to protecting course media files covers the Nginx side.

Add-on licenses

After a domain change, check that each paid add-on still shows as licensed and reactivate keys if needed, either on the add-ons screen or with wp llms license activate followed by your key. Deactivate keys on the old domain once it is retired so they do not count against your site limit.

Step 4: Cut over in the right order

  1. Pick a quiet window. Use your renewal inventory to choose a time with few scheduled charges.
  2. Freeze the old site. Put it in maintenance mode so no new orders or progress are written there, and take a final database export.
  3. Import the final database into the new site and repeat the search-replace if the domain changes.
  4. Stop the old site's background jobs. Disable its cron, or add LLMS_SITE_IS_CLONE to the old site's wp-config.php so it can never run renewals again.
  5. Switch DNS to the new host. Lower the DNS time-to-live a day ahead so the change spreads quickly.
  6. Make the new site the real one. Remove LLMS_SITE_IS_CLONE, turn cron back on with a server cron job, and when LifterLMS shows its staging notice, click Enable Automatic Payments. That stores a new URL lock for the new address. On a host move that keeps the same domain, the stored lock still matches, so the notice may not appear at all; check under Scheduled Actions that renewals are being processed.
  7. Re-enable webhooks and update any external system that calls your API.

The LifterLMS documentation on staging sites and recurring payments warns that switching this mode on a live site can lead to missed or catch-up payments, which is why the order above keeps exactly one site in charge of renewals at every moment.

Step 5: Verify before you relax

  • Scheduled Actions. Under LifterLMS > Status > Scheduled Actions, check for past-due actions. Renewals that should have run during the move need reviewing order by order.
  • A real purchase. Buy a low-cost or 100% coupon access plan as a new user and confirm enrollment, emails and the order record.
  • A webhook from the gateway. Refund a test charge or send a test event from the gateway dashboard and check the order updates.
  • A student's view. Log in as a test student, open a lesson, mark it complete, take a quiz and open a protected download.
  • Cron. Confirm the server cron job runs. If scheduled actions build up, see fixing WP-Cron problems in LifterLMS.
  • Email. Send a password reset and check it arrives without landing in spam.

Common mistakes

  • Leaving the old site running. Two live copies with cron and gateway keys can both charge customers.
  • Clicking Enable Automatic Payments on the wrong copy. Only the final production site should get the new URL lock.
  • Running search-replace on core tables only. LifterLMS tables are skipped unless you include all prefixed tables.
  • Losing the server cron job. It lives in the server's crontab, not in WordPress, so it must be recreated on the new host.
  • Moving to Nginx without a media rule. Protected downloads can become reachable by direct link.

Frequently asked questions

Why does LifterLMS say my site might be a staging site after a move?

The site URL no longer matches the URL LifterLMS stored, so it disables automatic recurring payments as a precaution. On the final production site, click Enable Automatic Payments.

Will students need to log in again?

Usually yes after a domain change, because login cookies belong to the old domain. Their accounts, enrollments and progress are unchanged.

Do I need to update Stripe after moving hosts on the same domain?

Normally not, because the webhook URL is unchanged. Check the endpoint is receiving events successfully after DNS switches.

What if a renewal was missed during the move?

Find it under Scheduled Actions or on the order, and decide with the customer whether to charge it now. Do not run catch-up charges in bulk without reviewing them.

Next steps

Do the inventory first; it tells you how risky the move is. If you have active subscriptions, a payment gateway with webhooks and protected media, we strongly recommend a rehearsal on staging before the real cut-over. If you would rather have the move planned and run for you, with renewals monitored afterwards, our LifterLMS migration service covers host and domain changes. Tell us where you are moving from and to and we will propose a cut-over plan.

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