seo 2026-12-02 ⏱ 3 min read

Fix HTTPS Canonical URL Issues

Fix HTTPS Canonical URL Issues

To fix HTTPS canonical URL issues, make the redirect, the canonical tag, the sitemap and the internal links all name the same version of every page.

HTTPS canonical URL: the signals that must agree

SignalShould point toWhere to check
HTTP response301 redirect to the HTTPS URLcurl -I or the HTTPS redirect checker
rel="canonical" tagThe absolute HTTPS URLPage source
XML sitemapHTTPS URLs onlysitemap.xml
Internal linksHTTPS or relative pathsCrawler or site search
hreflang tagsHTTPS URLsPage source
Open Graph og:urlHTTPS URLPage source

Step 1: Find the problems

Search Console is the best starting point. Check the Pages report for entries such as "Duplicate without user-selected canonical" or "Alternate page with proper canonical tag", and use URL Inspection on a few key pages to see which URL Google chose as canonical. Then compare it with what you declared.

curl -sI http://example.com/page | head -5
curl -s https://example.com/page | grep -i 'rel="canonical"'

Step 2: Fix the redirect first

A single permanent redirect from HTTP to HTTPS, preserving the path and query string, should cover the whole site. Avoid chains such as HTTP to HTTPS to www to a trailing slash. Each extra hop slows crawling.

# Nginx
server {
    listen 80;
    server_name example.com www.example.com;
    return 301 https://example.com$request_uri;
}

# Apache .htaccess
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://example.com/$1 [R=301,L]

Step 3: fix the canonical URL tags for HTTPS

Use absolute URLs with the scheme and the exact host you want indexed. In WordPress, set both the WordPress Address and Site Address to HTTPS under Settings, then check that your SEO plugin does not hard-code an old base URL. For custom templates, build the canonical from one configuration value rather than from the incoming request, so a proxy that talks HTTP to your app does not produce an http:// canonical by accident.

<link rel="canonical" href="https://example.com/page" />

Step 4: Update the sitemap and internal links

Regenerate the sitemap so every entry is HTTPS and returns 200. Then search your database or templates for http://example.com and update internal links, image sources and scripts. Mixed content can also cause browsers to block resources, so run the Live SSL Checker and open the browser console on key pages.

Step 5: Keep it clean

  • Keep the HTTP redirect in place permanently, not for a few weeks.
  • Add HSTS once everything works on HTTPS. See our security headers checker.
  • Submit the HTTPS property sitemap in Search Console.
  • Re-crawl the site monthly to catch new HTTP links added by editors.

Related reading: migrating a site to HTTPS, HTTPS best practices for technical SEO, fixing mixed content warnings and fixing HTTPS canonical URL issues.

Frequently Asked Questions

Is a canonical tag enough without a redirect?

No. A canonical tag is a hint, not a command. Use the redirect for users and crawlers, and the tag as a second signal.

Do I need a separate Search Console property for HTTPS?

A Domain property covers both. If you use URL-prefix properties, add the HTTPS one.

How long until Google switches?

It varies by site size and crawl rate. Clean signals shorten the wait, but expect days to weeks, not hours.

Should the canonical include www or not?

Either is fine. Pick one, redirect the other to it, and use it everywhere.

🔒 Test Your Website SSL Certificate Now
Run Free SSL Check →

✅ 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 www versions resolve cleanly to one canonical HTTPS URL.
  • Verify your HTTPS property and sitemap.xml inside Google Search Console and Bing Webmaster Tools.
Technically Reviewed by TryFreeSSL Security Team
Last updated: 2026-12-05
About Us →

Free SSL Certificates, Live SSL Checker & CSR Generator

Issue trusted Let's Encrypt SSL certificates in 60 seconds with zero server setup.

Related Articles

🤖 TryFreeSSL AI Assistant