It’s been a month since I have been trying to fix this problem. I use SUMO share count plugin. To get the share counts back, I got support from SUMO with communication back and forth. No luck. He had to give up. He says this:
“I’ve tried modifying your .htaccess file a few times, but without any luck. ??
Whichever configuration I used, the OG tags still remained as https after fetching from Facebook.
As we don’t support that plugin, I would highly recommend reaching out to them and asking what exactly is not working out on your site and tell them you tried everything they suggested in the description.”
Could you please help me?
]]>Just FYI, the following code:
$ogurl = explode( ':', $ogurl);
will break the url in more than 2 parts, and therefore produce the wrong url:
// if url is, say https://www.somethig.com:8080/blah
$ogurl = explode( ':', $ogurl);
$ogurl_part = $ogurl[1];
$ogurl = 'http:' . $ogurl_part;
// The result is https://www.something.com
note that this is only a problem if the url has a :
in it, which could be a port number or part of the query string in some cases.
A way to fix it would be to limit the explode:
$ogurl = explode( ':', $ogurl, 2);
which would split in at most 2 parts.
]]>Hello,
could you tell me how the rule for redirect should be for nginx?
thank you in advance
]]>Hey there! This is exactly what I was looking for however does not seem to work for me. Ran plugin and debugged/scrapped url in facebook. No change. Checked HTML and HTTP still present. Little help?
Shaun
]]>