HTTPS Migration: A Complete Step-by-Step Guide for Beginners (2026)
Migrating a website from HTTP to HTTPS involves more than just installing an SSL certificate. Done incorrectly, you can split your search rankings between two versions of your site, create redirect loops, or end up with a padlock that shows mixed content warnings. This guide covers every step in the right order, including what to verify before you start and how to confirm everything worked after.
cPanel → Security → SSL/TLS Status
B VPS / Dedicated Server — Let's Encrypt via Certbot
Certbot will automatically edit your Apache virtual host to enable HTTPS and set up a cron job for renewal. For Nginx, replace --apache with --nginx.
Step 2: Verify the Certificate Is Working
Before redirecting traffic, confirm the certificate is served correctly:
Click the padlock icon in Chrome to see certificate details
Step 3: Set Up HTTP → HTTPS Redirect
Without a redirect, HTTP and HTTPS will both serve your site — Google sees them as two different sites and splits your link equity.
Apache (.htaccess)
Nginx
Verify with the Redirect Checker
Use the Redirect Checker to confirm http://yourdomain.com now returns a single 301 redirect to https://yourdomain.com. If you see two or more hops, there's a redirect chain to fix.
Step 4: Fix Mixed Content
Mixed content happens when your HTTPS page loads resources (images, scripts, stylesheets) over HTTP. The browser blocks some mixed content silently and flags others, removing the padlock.
Find Mixed Content
Fix Mixed Content in WordPress
Step 5: Update Google Search Console and Analytics
1 Add HTTPS property in Search Console
Go to Google Search Console → Add Property → enter https://yourdomain.com. Verify ownership (same methods as before). Submit your updated sitemap (with HTTPS URLs): Settings → Sitemaps → Add sitemap.xml.
2 Update Google Analytics
In GA4: Admin → Property → Property Settings → update the website URL from http:// to https://. Also update any referral exclusion lists, UTM parameters, or tracking code settings that reference the HTTP URL.
Step 6: Post-Migration Verification
- ✓ Visit
https://yourdomain.com— padlock shows without warnings - ✓ Visit
http://yourdomain.com— 301 redirects to HTTPS - ✓ Open Chrome DevTools Console — no mixed content warnings
- ✓ Run SSL Checker — all green, no chain errors
- ✓ Run Redirect Checker — single 301 hop, no loops
- ✓ Check Search Console — HTTPS property receiving data
- ✓ Update any hardcoded links in email templates, social profiles, or third-party directories
Common HTTPS Migration Mistakes
- Using 302 instead of 301: A 302 (temporary redirect) tells Google not to update its index. Always use 301.
- Redirect chains: HTTP → HTTPS is one redirect. HTTP → HTTPS → www → non-www is three. Each extra hop loses PageRank. Consolidate to a single redirect.
- Forgetting subdomains: If you have
blog.yourdomain.comorshop.yourdomain.com, each needs its own certificate and redirect. - Not updating the sitemap: Your XML sitemap must use HTTPS URLs or Google will see mismatches.
FAQs
- Will my search rankings drop after migration?
There may be a brief fluctuation as Google re-indexes the new HTTPS URLs. Long-term, HTTPS is a positive ranking signal. Use 301 redirects and most sites see equal or improved rankings within a month. - Do I need to update all my internal links to HTTPS?
Ideally yes, but it's not critical if your 301 redirect is in place. The redirect handles old internal links automatically. Updating internal links directly avoids the redirect overhead and is better for performance. - My hosting provider already gave me a free SSL — do I still need to set up redirects?
Almost always yes. Many hosts install the certificate but don't automatically redirect HTTP traffic. Test by visitinghttp://yourdomain.com(without the S) in your browser — if it loads without redirecting, you need to add the redirect rules.
Migrating to HTTPS on Windows Server (IIS)
The HTTPS migration process on Windows IIS follows the same logical steps as Linux — get a certificate, configure the server, set up redirects, fix mixed content — but the tools are different.
Step 1: Get an SSL Certificate for IIS
The fastest path is Let's Encrypt via win-acme, which handles certificate issuance, IIS binding, and renewal automatically. For commercial certificates, generate a CSR using IIS Manager:
Step 2: Configure HTTPS Binding
Step 3: Redirect HTTP to HTTPS
Add the URL Rewrite rule to your site's web.config (requires the IIS URL Rewrite module):
Step 4: Add HSTS Header
macOS (Homebrew) Migration Note
On macOS with Homebrew Apache or Nginx, follow the Linux steps shown above — the Apache VirtualHost syntax, Nginx server block, and Certbot commands are identical. Config files are at /opt/homebrew/etc/httpd/ (Apache) and /opt/homebrew/etc/nginx/ (Nginx). Reload with brew services restart httpd or brew services restart nginx.
Check your migration is complete
Verify your certificate, redirect chain, and HTTPS configuration with our free tools.