• Resolved scrhorton

    (@scrhorton)


    My site runs without SSL, so all pages are http.

    However, it seems that on a random selection of pages/post, Yoast SEO is setting the canonical link to a https version of the http page.

    This causes problems as Google then indexes the https page, which doesn’t exist and throws an error if a user clicks on this page in Google search results.

    The pages affected seem to be random. Maybe 10% of all pages on the site at any one time.

    If I make an edit and ‘update’ an affected page, the canonical link is thereafter corrected to use http.

    Here is an example of an affected page (may not persist for long though):

    https://www.bradleystokejournal.co.uk/directory/

    If you view the page source for the above page, you see:

    <link rel=”canonical” href=”https://www.bradleystokejournal.co.uk/directory/” class=”yoast-seo-meta-tag” />

    The page I need help with: [log in to see the link]

Viewing 16 replies (of 16 total)
  • Thread Starter scrhorton

    (@scrhorton)

    @maybellyne,

    As an interim measure, I am now using the wpseo_canonical filter to force http in the canonical link.

    Our hosting provider has implemented some changes to return an error page if https is used to access a http webpage.

    Hopefully these actions will stop Google indexing https versions of our webpages.

    I will pursue the plugin/theme disabling approach when I have time, but this won’t be necessary if I can accelerate our planned moved to https.

Viewing 16 replies (of 16 total)
  • The topic ‘Canonical URL incorrectly uses https instead of http’ is closed to new replies.