deliciousbrains / better-search-replace

A simple plugin for updating URLs or other text in a database.
https://bettersearchreplace.com
GNU General Public License v3.0
89 stars 36 forks source link

=== Better Search Replace === Contributors: wpengine, deliciousbrains, mattshaw Tags: search replace, search and replace, update urls, database, search replace database, update database urls, update live url, better search replace, search&replace Requires at least: 3.0.1 Tested up to: 6.6 Stable tag: 1.4.10-dev License: GPLv3 or later License URI: http://www.gnu.org/licenses/gpl-3.0.html

A simple plugin to update URLs or other text in a database.

== Description ==

When moving your WordPress site to a new domain or server, you will likely run into a need to run a search/replace on the database for everything to work correctly. Fortunately, there are several plugins available for this task, however, all have a different approach to a few key features. This plugin consolidates the best features from these plugins, incorporating the following features in one simple plugin:

Time-saving features available in the Pro version:

  • View exactly what changed during a search/replace
  • Backup and import the database while running a search/replace
  • Priority email support from the developer of the plugin
  • Save or load custom profiles for quickly repeating a search/replace in the future
  • Support and updates for 1 year

Learn more about Better Search Replace Pro

The search and replace functionality is heavily based on interconnect/it's great and open-source Search Replace DB script, modified to use WordPress native database functions to ensure compatibility.

Supported Languages

Want to contribute?

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

== Installation ==

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. Type "Better Search Replace" in the search bar and select this 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

== Frequently Asked Questions ==

= 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. Install the database on your new 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.

== Screenshots ==

  1. The Better Search Replace page added to the "Tools" menu
  2. After running a search/replace dry-run.

== Changelog ==

= Unreleased =

= 1.4.9 - October 4, 2024 =

= 1.4.8 - September 3, 2024 =

= 1.4.7 - May 30, 2024 =

= 1.4.6 - April 17, 2024 =

= 1.4.5 - January 18, 2024 =

= 1.4.4 - December 14, 2023 =

= 1.4.3 - September 5, 2023 =

= 1.4.2 - January 11, 2023 =

= 1.4.1 - July 25, 2022 =

= 1.4 - April 7, 2022 =

= 1.3.4 - December 7, 2020 =

= 1.3.3 - February 26, 2019 =

= 1.3.2 - January 3, 2018 =

= 1.3.1 - September 14, 2017 =

= 1.3 - November 10, 2016 =

= 1.2.10 - June 2, 2016 =

= 1.2.9 - December 8, 2015 =

= 1.2.8 - November 25, 2015 =

= 1.2.7 - November 24, 2015 =

= 1.2.6 =

= 1.2.5 =

= 1.2.4 =

= 1.2.3 =

= 1.2.2 =

= 1.2.1 =

= 1.2 =

= 1.1.1 =

= 1.1 =

= 1.0.6 =

= 1.0.5 =

= 1.0.4 =

= 1.0.3 =

= 1.0.2 =

= 1.0.1 =

= 1.0 =