My blog https://sonicscoop.com has older posts dating all the way back to 2012 with hundreds of Facebook "likes" such as this one https://sonicscoop.com/2012/08/29/the-big-list-of-free-pro-tools-plugins-2/, but they all lost their correct count when we switched to https:
as you can see here:
For some reason Facebook's debugger is detecting the canonical and og:url
as https://
even though the page's rendered HTML shows them as http://
.
If I can get Facebook to pick up the http canonical for older posts I'm hoping the likes will return to the correct count. Here is my .htaccess
file:
# --enable htaccess rewrites
RewriteEngine on
# --force https
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L,NE]
# --remove www for site
RewriteCond %{HTTP_HOST} ^www\.sonicscoop\.com [NC]
RewriteRule ^(.*)$ https://sonicscoop.com/$1 [L,R=301]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
AddHandler application/x-httpd-php54s .php
<iframe src="https://www.facebook.com/plugins/like.php?href=https%3A%2F%2Fsonicscoop.com
Note thehttps
in thehref
query string parameter. – Situatehttps://…
” right afterwards, thereby nullifying that you pointed it to the HTTP version in the first place. developers.facebook.com/docs/plugins/faqs#faq_1149655968420144 – Rms