Mixed content Plugin conflicts Seo

Compatibility fix for Social Warfare share counts recovery

*  EDIT *

This fix is not needed anymore, as Warfar plugins has integrated this fix in their plugin. 

If you are using the Social Warfare share counts recovery plugin to recover the social shares and likes for Facebook,  Twitter etc, you might run into the problem that there is a slight incompatibility between the plugins. As Really Simple SSL fixes all http links, it also fixes a link that the Warfare plugin needs to stay http.

There is a solution for this. Really Simple SSL uses a filter which can be used to change a specific url back to http. This is how it would look like for the Social Warfare share counts recovery plugin. Or download it for free as small plugin

function rsssl_fix_warfare_compat_issue($html) { 
    //replace the https back to http 
    $html = str_replace(
         "swp_post_recovery_url = 'https://",
         "swp_post_recovery_url = 'http://", 
         $html); 
    return $html; 
} 

add_filter("rsssl_fixer_output","rsssl_fix_warfare_compat_issue");
You can paste this code into your functions.php. If you do this, the plugin should be able to recover the Facebook likes.

Related Articles

  • Does the plugin do a seo friendly 301 redirect?

    By default a 301 internal WordPress permanent redirect is added, which means the redirect is handled by WordPress. If you are running on Apache or Litespeed, you can also enable...
  • Using safe mode

    Migrating to SSL can cause unexpected side effects. When caching is causing redirects, or a plugin redirects back to http, or other such issues, it can be helpfull to activate...
  • Disabling ssl for one page only

    The problem: services that don’t support SSL I think the best way to go is to get your entire site on SSL. But sometimes there are services that are not...
  • Plugin conflicts: tracking down the cause

    Sometimes you can experience plugin issues that seem to be caused by Really Simple SSL. What most people forget, is that when you activate Really Simple SSL, you also force...

Leave a Comment