Title: Lost share counts after moving to https
Last modified: September 22, 2017

---

# Lost share counts after moving to https

 *  [dayleedreamer](https://wordpress.org/support/users/dayleedreamer/)
 * (@dayleedreamer)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/lost-share-counts-after-moving-to-https/)
 * Help!
 * Didn’t realize that I would loose all my share counts after moving to https. 
   Particularly critical is FB as the highest share counts came from there. Is there
   a way I could get it back? I am using Yoast plugin along with Cresta if that 
   helps

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [CrestaProject](https://wordpress.org/support/users/crestaproject/)
 * (@crestaproject)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/lost-share-counts-after-moving-to-https/#post-9523665)
 * Hi [@dayleedreamer](https://wordpress.org/support/users/dayleedreamer/)
    yes,
   Facebook (and other social networks) consider http and https as a 2 different
   URLs and then use a new counter. Facebook has a way to “move” the shares from
   one URL to another, here’s the documentation [https://developers.facebook.com/docs/sharing/webmasters/crawler/#updating](https://developers.facebook.com/docs/sharing/webmasters/crawler/#updating)
   Is a bit complicated but I think it is the only solution.
 * Best Regards,
    CrestaProject
 *  [Ghostyvb13](https://wordpress.org/support/users/ghostyvb13/)
 * (@ghostyvb13)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/lost-share-counts-after-moving-to-https/#post-9558373)
 * I have this same problem, can you give me some pointers on how to proceed and
   make it work?
 * Based on what i read i you need to change the og:url and/or canonical url. I 
   found to function.php snippets that changes the https to http…. But i did not
   get any positive on the shares side, but it did change the meta data.
 * ———SNIPPETS————–I left in the comments because i did not write the code.
 * /**
    * [@snippet](https://wordpress.org/support/users/snippet/) Move & Change
   Number of Cross-Sells @ WooCommerce Cart * [@how-to](https://wordpress.org/support/users/how-to/)
   Watch tutorial @ [https://businessbloomer.com/?p=19055](https://businessbloomer.com/?p=19055)*
   [@sourcecode](https://wordpress.org/support/users/sourcecode/) [https://businessbloomer.com/?p=20449](https://businessbloomer.com/?p=20449)*
   [@author](https://wordpress.org/support/users/author/) Rodolfo Melogli * @testedwith
   WooCommerce 2.6.2 */
 * function design_canonical() {
    global $post; if(isset($_SERVER[‘HTTPS’]) && $
   _SERVER[‘HTTPS’] == “on”) { $find = ‘[https://www.exampledomain.com&#8217](https://www.exampledomain.com&#8217);;
   $replace = ”; $theurl = str_replace($find,$replace,get_permalink($post->ID));
   return site_url( $theurl , ‘http’ ); } else { // Leave blank and Yoast SEO will
   use default canonical for posts/pages } }
 * add_filter( ‘wpseo_canonical’, ‘design_canonical’ );
 * /********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/
    /* Enforce HTTP 
   Open Graph URLs in Yoast SEO * Credit: stodorovic [https://github.com/stodorovic](https://github.com/stodorovic)*
   Last Tested: Feb 06 2017 using Yoast SEO 4.2.1 on WordPress 4.7.2 */
 * add_filter( ‘wpseo_opengraph_url’, ‘my_opengraph_url’ );
    function my_opengraph_url(
   $url ) { return str_replace( ‘[https://&#8217](https://&#8217);, ‘[http://&#8217](http://&#8217);,
   $url ); }
    -  This reply was modified 8 years, 7 months ago by [Ghostyvb13](https://wordpress.org/support/users/ghostyvb13/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Lost share counts after moving to https’ is closed to new replies.

 * ![](https://ps.w.org/cresta-social-share-counter/assets/icon-256x256.png?rev=
   2467359)
 * [Cresta Social Share Counter](https://wordpress.org/plugins/cresta-social-share-counter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cresta-social-share-counter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cresta-social-share-counter/)
 * [Active Topics](https://wordpress.org/support/plugin/cresta-social-share-counter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cresta-social-share-counter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cresta-social-share-counter/reviews/)

## Tags

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

 * 2 replies
 * 3 participants
 * Last reply from: [Ghostyvb13](https://wordpress.org/support/users/ghostyvb13/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/lost-share-counts-after-moving-to-https/#post-9558373)
 * Status: not resolved