Install Free SSL on WordPress
To install free SSL on WordPress, get the certificate from your host first, then switch the site URL to https and fix what still loads over http. Do it in that order.
Step 1: Get the free certificate
Start with your host. Most WordPress hosting includes free SSL:
- cPanel hosts: enable AutoSSL under SSL/TLS Status and run it for your domain.
- Managed WordPress hosts: look for an SSL or HTTPS toggle in the site dashboard; it is usually one click.
- VPS: run certbot for nginx or Apache and let it configure HTTPS.
- Any host via Cloudflare: proxy the domain and use Universal SSL with Full (Strict) mode plus an origin certificate.
If none of these apply, generate a certificate externally and upload it through your panel. Confirm the padlock appears when you visit https://yourdomain.com before touching WordPress settings; fixing WordPress before the certificate works creates redirect loops and lockouts.
Install free SSL on WordPress: switch the site URL
In wp-admin, go to Settings, General and change both the WordPress Address and the Site Address from http:// to https://. Save, and you will be logged back in over HTTPS. If you manage sites with wp-config.php, the same values can be forced there with WP_HOME and WP_SITEURL constants.
Step 3: Force HTTPS everywhere
Add a redirect so every HTTP request lands on HTTPS. For Apache, add this to the top of .htaccess:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
The full redirect playbook, including nginx rules and Cloudflare page rules, is in forcing HTTPS with .htaccess in WordPress.
Install free SSL on WordPress: fix mixed content
Old posts and themes often hard-code http:// image and script URLs, which triggers browser warnings even with a valid certificate. Fixes, from gentlest to deepest:
- Run a search-and-replace on the database, swapping http://yourdomain.com for https://yourdomain.com. With WP-CLI that is one command; back up the database first.
- Check the theme, widgets and custom code for hard-coded http:// asset URLs.
- Scan the finished site with a mixed content checker to catch anything left.
Detailed fixes for page builders and WooCommerce are in the guide Enable HTTPS on WordPress and Fix Mixed Content and Fix Mixed Content Warnings.
Step 5: Clean up
- Update your primary URL in Google Search Console and Analytics so reporting tracks the HTTPS version.
- Confirm the certificate auto-renews through your host or certbot, so this is the last time you think about it.
- Consider enabling HSTS once everything is stable for a few weeks.
- Test a few old post URLs over HTTP and confirm they redirect cleanly to HTTPS.
After these steps your WordPress site is fully HTTPS: padlock, redirects, clean assets and no renewal chores.
Behind a reverse proxy or Cloudflare
If WordPress sits behind Cloudflare or another proxy, HTTPS detection can misfire and cause redirect loops. The fix is telling WordPress to trust the proxy's HTTPS header, typically by checking the X-Forwarded-Proto header in wp-config.php. Symptoms are obvious: endless redirects or a login page that loops. Set the SSL mode to Full (Strict) at the proxy as well, so the loop is not hiding an unencrypted origin hop.
Common symptoms after the switch
Three issues account for nearly all post-migration trouble. Redirect loops usually mean a proxy or plugin conflict over HTTPS detection. Mixed content warnings mean old http:// asset URLs remain in the database or theme. And a login page that refuses to load often means the Site Address was changed before the certificate actually worked. Each has a targeted fix in the sections above, and none requires reinstalling anything.
Once the checklist is complete, spot-check a few old HTTP links from external sources like social posts or email footers. Each should land on the HTTPS version in one redirect. That final pass confirms the migration holds up for real visitors, not just for fresh browser sessions on your own machine.
Related reading: forcing HTTPS in WordPress, mixed content in WordPress and shared hosting without a panel option.
Frequently Asked Questions
Do I need a plugin to install the certificate?
No. The certificate is installed on the hosting account, not inside WordPress. A plugin only helps with the URL switch, and the settings pages already do that.
What breaks when I switch the site URL?
Anything hard coded to http: builder templates, widget links, some theme options and cached pages. Check the browser console after the switch and fix each source.
Can I switch back if something goes wrong?
Yes, if you kept access. Set WP_HOME and WP_SITEURL in wp-config to the old address, or edit the options table directly, then sign in and try again.
✅ Post-Installation Verification & SEO Checklist
After applying the steps above, run through this 5-point checklist to prevent browser warnings and protect your Google SEO rankings:
- Verify full CA chain trust and TLS 1.3 support using our Live SSL Checker.
- Scan for Mixed Content HTTP links and check HSTS/CSP headers on Security Headers Checker.
- Enforce a permanent 301 HTTP-to-HTTPS redirect with our HTTPS Redirect Generator.
- Confirm both root and
wwwversions resolve cleanly to one canonical HTTPS URL. - Verify your HTTPS property and
sitemap.xmlinside Google Search Console and Bing Webmaster Tools.