What SSL Certificate Steps Are Required When Migrating a WordPress Site?

Learn the exact order for SSL, HTTPS updates, redirects, and checks that keeps a WordPress move smooth.

Migrating a WordPress site requires installing a valid SSL certificate on the new host, then switching WordPress to use HTTPS for all pages and assets. An SSL certificate is a small data file that lets a server prove its identity and encrypt traffic, which browsers show as HTTPS with a lock icon.

The order matters during a move. Get HTTPS working on the new hosting first, then change WordPress settings, then clean up leftover HTTP links and redirects. This keeps forms, logins, and checkout pages secure.

Table of Contents

How do you prepare SSL on the new host?

Start by issuing a certificate for the exact domain that will go live, including the www and non-www versions when both are used. Many hosts offer free one-click certificates, while others let you upload a commercial certificate and private key. Install the certificate before pointing public traffic to the new site if possible. You can test HTTPS using a temporary host record or staging address.

Confirm the lock appears and the certificate name matches the live domain. Keep the old site on HTTPS until DNS fully switches over. That avoids a gap where visitors hit an insecure page. Do not cancel the old certificate until the new site is stable.

How do you switch WordPress to HTTPS?

Update the WordPress Address and Site Address to use https:// rather than http://. You can change these under Settings, in wp-config.php, or during a scripted migration. Make the change after HTTPS already loads correctly on the new server. Check wp-config.php, theme settings, widgets, menus, and custom fields for hardcoded http:// URLs.

Migration tools can search and replace the old domain, but review serialized data carefully. A bad find-and-replace can break widgets, page-builder layouts, or options. Force HTTPS for logins and admin pages once the front end works. Add a server-level redirect from HTTP to HTTPS so no page stays reachable on plain HTTP. Test wp-admin, password resets, and file uploads after the switch.

How do you find and fix mixed content?

Mixed content means a secure page loads an image, script, style, font, or video over plain HTTP. Browsers may block those files or show a warning. This often comes from theme files, page builders, custom HTML, or old posts.

Pay special attention to scripts and iframes. An insecure script can break a slider, form, or payment field. An insecure iframe can block a map, video, or booking tool.

  • Scan key templates: home, contact, checkout, login, and one long post with embeds.
  • Use browser developer tools to list blocked HTTP requests.
  • Replace hardcoded http:// asset links with https:// or relative paths.
  • Update CDN, media, font, and embed URLs in settings and content.
  • Clear page, object, and CDN caches, then rescan.

What redirects and checks protect traffic?

Set one clear canonical destination, usually https://example.com or https://www.example.com. Redirect the other three variants: HTTP with and without www, plus the non-canonical HTTPS version. Use 301 permanent redirects at the server level. Update links in places outside WordPress that still point to HTTP.

Common spots include social profiles, email signatures, payment webhooks, APIs, and scheduled tasks. Also update the domain in analytics, search console, ad accounts, sitemaps, and feeds. Recrawl important pages and submit the updated sitemap. Watch for redirect loops, too many redirects, missing images, failed forms, and payment errors. Fix loops by checking host redirects, security plugins, and CDN rules together.

What breaks most often during an SSL migration?

The most common failure is changing WordPress URLs before the new certificate is active. Visitors then see security warnings or cannot reach wp-admin. Always verify HTTPS loads directly before forcing it sitewide. Another issue is cached HTTP responses. A page cache, CDN edge cache, or browser cache can keep serving old links after the fix.

Purge all caches after each major step. Retest in a private window. Finally, check third-party services that validate your domain. Payment gateways, login providers, maps, webhooks, and APIs may need the new HTTPS URL or renewed tokens. Test one live order, form submission, and login after migration.

Frequently Asked Questions

Should SSL be installed before or after moving WordPress files?

Install and test it before switching public traffic, then update WordPress URLs and redirects after HTTPS works.

Why does WordPress still show "not secure" after the certificate is valid?

That usually means some images, scripts, or embeds still load over HTTP, so find and update those mixed-content links.

Do staging URLs need special care?

Yes. Keep staging on its own certificate or password protection, then run a careful search-and-replace so test URLs do not leak into the live site.


You Might Also Like