How to Add SSL to WordPress: Complete Step-by-Step Guide (2026)
Adding SSL to a WordPress site involves more than just installing a certificate on the server. WordPress stores URLs in its database, and those stored URLs need to be updated to HTTPS too — otherwise you'll end up with mixed content warnings even after the certificate is installed. This guide walks through every step, in the right order.
Free SSL Checker
Verify your WordPress SSL: certificate, redirect chain, and mixed content.
Try It Free →1 Get and Install the Certificate
Most managed WordPress hosts (Kinsta, WP Engine, SiteGround, Bluehost) issue and auto-renew a free Let's Encrypt certificate through their hosting panel with one click — check your host's dashboard before doing this manually. If you manage your own server:
2 Update the Site URL and Home URL in WordPress
WordPress stores its own base URLs in the database (wp_options table). Update both via Settings → General in wp-admin, or via WP-CLI for a scripted deploy:
3 Replace Hardcoded HTTP URLs in the Database
Content written before the switch (post bodies, widget settings, theme options) often has hardcoded http:// links to images and internal pages baked directly into the database. A simple find-and-replace on the raw database is unsafe because WordPress serializes some data (arrays/objects stored as PHP serialized strings) — a naive string replace corrupts the serialization length prefixes. Use a serialization-aware tool:
4 Force HTTPS at the Server Level
Add a permanent redirect so any HTTP request is upgraded before WordPress even loads — this is more reliable than a plugin-based redirect:
5 Fix Mixed Content Warnings
After steps 1-4, run the SSL Checker's mixed-content scan or check your browser's DevTools console for blocked HTTP resources. Common remaining offenders: hardcoded URLs in the theme's functions.php, third-party embed codes (YouTube, social widgets) still using http://, and CDN configurations serving assets over HTTP. See our full mixed content guide for the systematic fix.
6 Update Google Search Console and Analytics
Add the https:// property in Search Console as a new, separate property (Search Console treats HTTP and HTTPS as distinct properties) and submit your sitemap under the new HTTPS property. Update your GA4 data stream's default URL to HTTPS. Skipping this step doesn't break your site, but it does mean you'll be flying blind on search performance data during the transition.
www or non-www.Verify your WordPress migration is fully clean
Check your certificate, redirect chain, and scan for any remaining mixed content in one pass.