Title: Change OG URL To HTTP
Author: OrbitingWeb
Published: <strong>25 de agosto de  2017</strong>
Last modified: 17 de julio de  2018

---

Buscar plugins

Este plugin **no se ha probado con las últimas 3 versiones mayores de WordPress**.
Puede que ya no tenga asistencia ni lo mantenga nadie, o puede que tenga problemas
de compatibilidad cuando se usa con las versiones más recientes de WordPress.

![](https://s.w.org/plugins/geopattern-icon/change-og-url-to-http.svg)

# Change OG URL To HTTP

 Por [OrbitingWeb](https://profiles.wordpress.org/inorbit/)

[Descargar](https://downloads.wordpress.org/plugin/change-og-url-to-http.1.0.zip)

 * [Detalles](https://es-ar.wordpress.org/plugins/change-og-url-to-http/#description)
 * [Valoraciones](https://es-ar.wordpress.org/plugins/change-og-url-to-http/#reviews)
 *  [Instalación](https://es-ar.wordpress.org/plugins/change-og-url-to-http/#installation)
 * [Desarrollo](https://es-ar.wordpress.org/plugins/change-og-url-to-http/#developers)

 [Soporte](https://wordpress.org/support/plugin/change-og-url-to-http/)

## Descripción

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](https://developers.facebook.com/docs/plugins/faqs#moving-urls).

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 RewriteCond %{HTTP_USER_AGENT} !
facebookexternalhit/[0-9] RewriteRule ^(.*)$ https://sitename.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](https://developers.facebook.com/tools/debug/)
 * 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](https://orbitingweb.com/blog/http-to-https-retain-facebook-likes/)

### Want any new features?

Want any new features added to this plugin? Just send me an email. [You can find my email here.](https://orbitingweb.com/lets-get-in-touch/)

## Capturas

[⌊HTML souce of the page shows OG URL tag changed to HTTP⌉⌊HTML souce of the page
shows OG URL tag changed to HTTP⌉[

HTML souce of the page shows OG URL tag changed to HTTP

## Instalación

#### Manually installing the plugin

 1. Download the plugin zip file from WordPress.org
 2. Upload the zip file of the plugin by logging into your wordpress dashboard and 
    going to ‘Plugins > Add New > Upload Plugin’.
 3. Click on the ‘install’ now button.
 4. After the installation is complete, click the ‘Activate’ button.
 5. Once activated, the plugin automatically adds a filter to the OG:URL output.

#### Installing from WordPress dashboard

 1. Login to your wordpress dashboard and go to ‘Plugins > Add New’.
 2. Search for ‘Quick And Easy SEO’ and click on the ‘Install’ button.
 3. Once the installation is complete, click on the ‘Activate’ button.
 4. Once activated, the plugin automatically adds a filter to the OG:URL output.
 5. Check your HTML source to see if all tags are being added properly.

## Preguntas frecuentes

  Installation Instructions

#### Manually installing the plugin

 1. Download the plugin zip file from WordPress.org
 2. Upload the zip file of the plugin by logging into your wordpress dashboard and 
    going to ‘Plugins > Add New > Upload Plugin’.
 3. Click on the ‘install’ now button.
 4. After the installation is complete, click the ‘Activate’ button.
 5. Once activated, the plugin automatically adds a filter to the OG:URL output.

#### Installing from WordPress dashboard

 1. Login to your wordpress dashboard and go to ‘Plugins > Add New’.
 2. Search for ‘Quick And Easy SEO’ and click on the ‘Install’ button.
 3. Once the installation is complete, click on the ‘Activate’ button.
 4. Once activated, the plugin automatically adds a filter to the OG:URL output.
 5. Check your HTML source to see if all tags are being added properly.

  What does the plugin do?

The plugin changes the OG URL output of popular plugins from HTTPS to HTTP URLs.

eg: https://example.com/article/ to http://example.com/article/

  How do I check if the plugin works?

Simply check the HTML source of one of your posts/pages to see if the OG URL tag
has been changed to ‘HTTP’.

  Does the plugin change OG URL tags for all posts?

The plugin only changes the OG URL tags for posts that existed when the plugin was
installed.
 This way new posts will have OG URL tags with HTTPS.

## Reseñas

![](https://secure.gravatar.com/avatar/b345d07bc7d3fcbf158eb5c4345c71808bddf29b34be5afdca33ff02aa8b68c4?
s=60&d=retro&r=g)

### 󠀁[It works](https://wordpress.org/support/topic/it-works-1824/)󠁿

 [pianfox](https://profiles.wordpress.org/pianfox/) 29 de abril de 2020

It works. If you have SEO plugin other than listed here, you need to disable or 
add your own code (to enable og:url = "http://…")

![](https://secure.gravatar.com/avatar/eab88df4e7933fa00ff0fcfcea22cf590af9489bdee02291acd5e73cc894417d?
s=60&d=retro&r=g)

### 󠀁[Simple and great!](https://wordpress.org/support/topic/simple-and-great-112/)󠁿

 [Barta Magdi](https://profiles.wordpress.org/bartamagdi/) 4 de noviembre de 2018

Entering 'how to recover facebook likes after https' in Google your article only
the 7th hit. The first 6 result were not helpful for me; either it contains incomprehensible
instruction or paid plugins. I was getting desperate, but I found your article and
with your plugin I successfully managed to solve this issue! Thank you very much!
Really great job!

 [ Leer todas las 2 reseñas ](https://wordpress.org/support/plugin/change-og-url-to-http/reviews/)

## Colaboradores y desarrolladores

“Change OG URL To HTTP” es un software de código abierto. Las siguientes personas
han colaborado con este plugin.

Colaboradores

 *   [ OrbitingWeb ](https://profiles.wordpress.org/inorbit/)

[Traduce “Change OG URL To HTTP” a tu idioma.](https://translate.wordpress.org/projects/wp-plugins/change-og-url-to-http)

### ¿Interesado en el desarrollo?

[Revisa el código](https://plugins.trac.wordpress.org/browser/change-og-url-to-http/),
echa un vistazo al [repositorio SVN](https://plugins.svn.wordpress.org/change-og-url-to-http/),
o suscríbete al [log de desarrollo](https://plugins.trac.wordpress.org/log/change-og-url-to-http/)
por [RSS](https://plugins.trac.wordpress.org/log/change-og-url-to-http/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Versión **1.0**
 *  Última actualización **hace 8 años**
 *  Instalaciones activas **70+**
 *  Versión de WordPress ** 4.1 o superior **
 *  Testeado hasta **4.8.33**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/change-og-url-to-http/)
 * Etiqueta:
 * [http](https://es-ar.wordpress.org/plugins/tags/http/)
 *  [Vista avanzada](https://es-ar.wordpress.org/plugins/change-og-url-to-http/advanced/)

## Valoraciones

 5 de 5 estrellas.

 *  [  2 valoraciones de 5 estrellas     ](https://wordpress.org/support/plugin/change-og-url-to-http/reviews/?filter=5)
 *  [  0 valoraciones de 4 estrellas     ](https://wordpress.org/support/plugin/change-og-url-to-http/reviews/?filter=4)
 *  [  0 valoraciones de 3 estrellas     ](https://wordpress.org/support/plugin/change-og-url-to-http/reviews/?filter=3)
 *  [  0 valoraciones de 2 estrellas     ](https://wordpress.org/support/plugin/change-og-url-to-http/reviews/?filter=2)
 *  [  0 valoraciones de 1 estrellas     ](https://wordpress.org/support/plugin/change-og-url-to-http/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/change-og-url-to-http/reviews/#new-post)

[Ver todas las reseñas](https://wordpress.org/support/plugin/change-og-url-to-http/reviews/)

## Colaboradores

 *   [ OrbitingWeb ](https://profiles.wordpress.org/inorbit/)

## Soporte

¿Tenés algo que decir? ¿Necesitás ayuda?

 [Ver el foro de asistencia](https://wordpress.org/support/plugin/change-og-url-to-http/)