Title: Canonical Sitewide https or http Option
Last modified: August 30, 2016

---

# Canonical Sitewide https or http Option

 *  Resolved [Michael Shinosky](https://wordpress.org/support/users/michael-shinosky/)
 * (@michael-shinosky)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/canonical-sitewide-https-or-http-option/)
 * 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/](https://wordpress.org/plugins/wordpress-seo/)

Viewing 16 replies (of 16 total)

[←](https://wordpress.org/support/topic/canonical-sitewide-https-or-http-option/?output_format=md)
[1](https://wordpress.org/support/topic/canonical-sitewide-https-or-http-option/?output_format=md)
2

 *  [kristarella](https://wordpress.org/support/users/kristarella/)
 * (@kristarella)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/canonical-sitewide-https-or-http-option/page/2/#post-6249390)
 * 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)

[←](https://wordpress.org/support/topic/canonical-sitewide-https-or-http-option/?output_format=md)
[1](https://wordpress.org/support/topic/canonical-sitewide-https-or-http-option/?output_format=md)
2

The topic ‘Canonical Sitewide https or http Option’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

## Tags

 * [HTTPS](https://wordpress.org/support/topic-tag/https/)

 * 16 replies
 * 5 participants
 * Last reply from: [kristarella](https://wordpress.org/support/users/kristarella/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/canonical-sitewide-https-or-http-option/page/2/#post-6249390)
 * Status: resolved