WordPress plugin intelligence profile

Change OG URL To HTTP

Changes OG URL tag added by Yoast, Aioseo and other plugins from HTTPS to HTTP to retain facebook like count for posts and pages.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 4.8
Current version1.0
WordPress coverageTested up to WordPress 4.8
Minimum stackWP 4.1 · PHP —
Directory statusactive
Last directory update17 Jul 20188y ago
Active installations70Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 2 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Change OG URL To HTTP version 1.0 as active, updated 8y ago and tested up to WordPress 4.8.

Overview

About this plugin

When you shift your blog from HTTP to HTTPS, all your posts/pages lose facebook likes/share count. The only way to regain these likes/share counts is to add a ‘OG URL’ tag that points back to the older ‘HTTP’ urls as described here by Facebook.

This plugin helps you do just that.

For example, if you use a SEO plugin like Yoast, the OG URL tag automatically reflects the HTTPS version for HTTPS URLs. This plugin adds a filter to the ‘OG URL’ output and changes it back to ‘HTTP’ for all existing posts/pages. New posts that you add after this plugin is activated will not be affected.

Similary, the canonical URL tag remains unchanged as ‘HTTPS’. Canonical tag is used by search engines like Google. So you are good when it comes to SEO.

This plugin changes the OG URL output for the following popular plugins:

  • Yoast SEO Plugin
  • ALL In One SEO Pack
  • WP facebook open graph protocol by Chuck Reynolds
  • Facebook Open Graph, Google+ and Twitter Card Tags plugin by Webdados

Note

This plugin only changes the ‘OG URL’ tags for posts that existed when this plugin is first installed. This way all new posts will have the regular OG URL tags with ‘HTTPS’.

Steps to make this work

You need to follow these steps in order for the plugin to work:

Step 1: Install and activate the plugin.

Step 2: If you are using a Cache plugin (eg: WP Super Cache), delete the cache.

Step 3: Exclude facebook bot from the HTTP to HTTPS redirection in your HTaccess file. Here’s an example:

RewriteEngine On

RewriteCond %{SERVER_PORT} 80

facebookexternalhit/[0-9]

com/$1 [R=301,L]

The above rewrite rule excludes facebook bots from the redirect.

Step 4: Wait for 30 days for facebook to rescrape your pages. Your ‘share count’ will return when facebook rescrapes your page.

Test to see if this works

You can instantly check to see if you did everything right by forcing facebook to rescrape one or many of your pages. Here’s how you can do that:

  • Login to your facebook account and go to Facebook debugger tool
  • Enter the ‘HTTPS’ url of one of your pages/posts and click the ‘Debug’ button.
  • If you get the “This URL hasn’t been shared on Facebook before.” message,click on the ‘Fetch New Information’ button.
  • Now click ‘Scrap Again’. You should now be able to see all your ‘likes’ to the page. You would also see two URLs under the ‘Redirect path’

heading which reflects your og:url meta tag and your original HTTPS URL.

Even if you do not manually rescrape your URLs, facebook will automatically rescape your URLs within 30 days. So all your ‘share counts’ will return within 30 days.

For detailed information on these steps, check out this article

Want any new features?

Want any new features added to this plugin? Just send me an email. You can find my email here.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • og url
  • og url aioseo
  • og url yoast
  • retain facebook likes
  • http
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 4.8

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 4.8.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to4.8
Minimum requirementsWordPress 4.1 · PHP not listed
Update activity17 Jul 20188y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.