Update the own URL when you add an SSL certificate in WordPress with the WP-CLI

When you add an SSL certificate to a WordPress site, you have to update all the own references on the website, changing the ‘http’ string to ‘https’.

In this post I will explain how to do it with the ‘search-replace‘ subcommand of WP-CLI.

Cambiar las referencias HTTP a HTTPS en una migración a SSL

Cuando implanto certificados SSL en una web tengo que cambiar las referencias internas de http a https.

Una forma rápida de llevar a cabo este cambio es el descrito a continuación, que está pensado para el trabajo con CMS, como WordPress, Drupal, Joomla, Magento, PrestaShop, que usan MySQL para almacenar la información.