Better Search Replace


Al mover tu sitio WordPress a un nuevo dominio o servidor es posible que quieras realizar una búsqueda/sustitución en la base de datos de todo lo que no funcione correctamente. Afortunadamente hay varios plugins disponibles para esta tarea, sin embargo cada uno de ellos tiene un modo diferente de hacerlo y de qué características ofrecer. Este plugin unifica las mejores características de estos plugins, incorporando las siguientes funcionalidades en un solo plugin:

  • Compatible con la serialización en todas las tablas
  • Posibilidad de elegir tablas específicas
  • La posibilidad de ejecutar un “simulacro” para ver cuántos campos se actualizarán
  • Ningún requisito del servidor más allá de estar ejecutando una instalación de WordPress
  • Compatible con WordPress multisitio

Time-saving features available in the Pro version:

  • Ve exactamente que ha cambiado durante una búsqueda/sustitución
  • Copias de seguridad e importación de la base de datos al ejecutar una búsqueda/sustitución
  • Priority email support from the developer of the plugin
  • Save or load custom profiles for quickly repeating a search/replace in the future
  • Soporte y actualizaciones durante 1 año

Aprende más sobre Mejor búsqueda y sustitución Pro

La funcionalidad de búsqueda y sustitución está basada en la interconexion de su fantástico script de código abierto Search Replace DB, modificado para usar las funciones nativas de la base de datos de WordPress y así asegurar la compatibilidad.

Idiomas incluidos

  • Inglés
  • Francés
  • Alemán
  • Español

¿Quieres colaborar?

Feel free to open an issue or submit a pull request on GitHub.


  • La página de Mejor búsqueda y sustitución añadida al menú "Herramientas"
  • Después de ejecutar un simulacro de búsqueda/sustitución.


Install Better Search Replace like you would install any other WordPress plugin.

Dashboard Method:

  1. Login to your WordPress admin and go to Plugins -> Add New
  2. Escribe “Better Search Replace” en la barra de búsqueda y selecciona este plugin
  3. Click “Install”, and then “Activate Plugin”

Upload Method:

  1. Unzip the plugin and upload the “better-search-replace” folder to your ‘wp-content/plugins’ directory
  2. Activate the plugin through the Plugins menu in WordPress

Preguntas frecuentes

Installation Instructions

Install Better Search Replace like you would install any other WordPress plugin.

Dashboard Method:

  1. Login to your WordPress admin and go to Plugins -> Add New
  2. Escribe “Better Search Replace” en la barra de búsqueda y selecciona este plugin
  3. Click “Install”, and then “Activate Plugin”

Upload Method:

  1. Unzip the plugin and upload the “better-search-replace” folder to your ‘wp-content/plugins’ directory
  2. Activate the plugin through the Plugins menu in WordPress
Using Better Search Replace

Once activated, Better Search Replace will add a page under the “Tools” menu page in your WordPress admin.

Is my host supported?

Yes! This plugin should be compatible with any host.

Can I damage my site with this plugin?

Yes! Entering a wrong search or replace string could damage your database. Because of this, it is always adviseable to have a backup of your database before using this plugin.

How does this work on WordPress Multisite?

When running this plugin on a WordPress Multisite installation, it will only be loaded and visible for Network admins. Network admins can go to the dashboard of any subsite to run a search/replace on just the tables for that subsite, or go to the dashboard of the main/base site to run a search/replace on all tables.

How can I use this plugin when changing URLs?

If you’re moving your site from one server to another and changing the URL of your WordPress installation, the approach below allows you to do so easily without affecting the old site:

  1. Backup the database on your current site
  2. Instala la base de datos en tu nuevo host
  3. On the new host, define the new site URL in the wp-config.php file, as shown here
  4. Log in at your new admin URL and run Better Search Replace on the old site URL for the new site URL
  5. Delete the site_url constant you added to wp-config.php. You may also need to regenerate your .htaccess by going to Settings -> Permalinks and saving the settings.

More information on moving WordPress can be found here.



This is one of the few plugins that I need most of the time as a developer. Thanks for making this awesome plugin!

Fails to search anything …

Not only that, it temporarily disables the site … gives following error:

An error occurred processing your request. Try decreasing the “Max Page Size”, or contact support.

As Promised

With this you wield great power. That is the power to not touch phpmyadmin or any other database management tool. And it comes with the ability to do a test run, by default. That feature allows for running your replacement and seeing what will be affected, without touching anything. Absolutely amazing plugin!

Oh and you can also check the option to update the GUID (or permanent address) for the database items. That’s amazing!

Highly recommended

Worked flawlessly. Mucking around in the database is scary to me – the Preview feature was very calming. Solved *lots* of 404 errors caused by temp URLs after migrating a website, and also solved *lots* of mixed content errors after switching my sites to SSL.

Leer todas las 216 reseñas

Colaboradores y desarrolladores

“Better Search Replace” es un software de código abierto. Las siguientes personas han colaborado con este plugin.


“Better Search Replace” ha sido traducido a 8 idiomas. Gracias a los traductores por sus colaboraciones.

Traduce “Better Search Replace” a tu idioma.

¿Interesado en el desarrollo?

Revisa el código , echa un vistazo al repositorio SVN , o suscríbete al log de desarrollo por RSS .

Registro de cambios

1.3.1 – September 14, 2017

  • Security: Check if data is serialized before unserializing it
  • Improvement: Increased size of table select

1.3 – November 10, 2016

  • Improvement: Updated sidebar and added pro version discount
  • Fix: Outdated links to old website
  • Fix: Prevent requests to invalid tabs

1.2.10 – June 2, 2016

  • Fix: CSS not loaded on details page

1.2.9 – December 8, 2015

  • Fix: Bug with case-insensitive searches in serialized objects
  • Fix: Bug with early skip due to lack of primary key

1.2.8 – November 25, 2015

  • Fix: Bug with report details

1.2.7 – November 24, 2015

  • Fix: Untranslateable string
  • Tweak: Check BSR_PATH instead of ABSPATH to be consistent
  • Tested with 4.4


  • Removed unused code/small cleanup


  • Improved progress bar info and styles
  • Small cleanup


  • Added “Settings saved” notice when saving settings
  • Fixed bug with wp_magic_quotes interfering with some search strings


  • Fixed bug with searching for backslashes
  • Fixed potential bug with getting tables in large multisites
  • Fixed potential notice in append_report
  • Improved handling of missing primary keys


  • Fixed AJAX conflict with WooCommerce
  • Fixed a few issues with translations
  • Tweaked “System Info” to use get_locale() instead of WP_LANG constant
  • Updated German translation (props @Linus Ziegenhagen)


  • Fixed minor issue with display of progress bar
  • Updated translation file


  • Switched to AJAX bulk processing for search/replaces
  • Decreased minimum “Max Page Size” to 1000
  • Added “Help” tab with system info for easier troubleshooting


  • Added ability to change max page size
  • Decreased default page size to prevent white screen issue on some environments


  • Added ability to change capability required to use plugin
  • Small bugfixes and translation fixes


  • Added table sizes to the database table listing
  • Added French translation (props @Jean Philippe)


  • Added support for case-insensitive searches
  • Added German translation (props @Linus Ziegenhagen)


  • Potential security fixes


  • Fixed issue with searching for special characters like ‘\’
  • Fixed bug with replacing some objects


  • Fixed untranslateable strings on submit button and submenu page.


  • Fixed issue with loading translations and added Spanish translation (props Eduardo Larequi)
  • Fixed bug with reporting timing
  • Updated to use “Dry Run” as default
  • Added support for WordPress Multisite (see FAQs for more info)


  • Version inicial