Source code viewed locally is different then when published

When I preview my website locally on safari browser - icon at top of elements - then view develop>show source code page, I see the following:

link rel=“canonical” href=https://mywebsite.com/

When I publish the website to the internet and view the source code, I see the following:

link rel=“canonical” href=http://mywebsite.com/

I have deleted all files at hosting location and completely republished hoping to get the SSL https: url but still in the source code page on the internet, http: persists.

The result I believe is causing indexing errors on Google Search Consul.

Any thoughts would be appreciated. Thanks.

Don’t know if this will 100% fix the issue, but make sure the website in Project settings reads https://

Thanks for thinking about this. I checked project setup url early in my attempts to resolve and the SSL url is identified as the website address.

I asked Grok about this, an got the following response: the <link rel="canonical" href="http://thoughtsondying.com/" /> tag is being auto-generated by Elements itself — not by LittleOak hosting or core RapidWeaver. Elements pulls the “base URL” or site address from its own settings or from how the site was configured/published, and it sometimes defaults to or sticks with HTTP even after you’ve enabled SSL.

In my original publishing, I may have used the http: url in project set up and changed it later to https: and republished. Is the non-SSL being defaulted to?