Support » Plugin: Yoast SEO » Canonical Sitewide https or http Option

  • Resolved Michael Shinosky

    (@michael-shinosky)


    I thought I remembered there an option to make the canonical URL either http or https sitewide. Now I see the canonical is “//” with no http or https.

    What can I do to correct this? I need the website to be https sitewide. Google is not registering most of my product pages as https. Possible duplicates now :(.

    Thanks,
    Michael Shinosky

    https://wordpress.org/plugins/wordpress-seo/

Viewing 16 replies (of 16 total)
  • That change is going to be overwritten as soon as there’s a plugin update. You should use a filter instead.

    function no_ssl_canonical( $url ) {
    	return str_replace ( "https:" , "http:" , $url ) ;
    }
    add_filter( 'wpseo_canonical', 'no_ssl_canonical' );
Viewing 16 replies (of 16 total)
  • The topic ‘Canonical Sitewide https or http Option’ is closed to new replies.