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
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.
Want to contribute?
Feel free to open an issue or submit a pull request on GitHub.
Install Better Search Replace like you would install any other WordPress plugin.
Once activated, Better Search Replace will add a page under the “Tools” menu page in your WordPress admin.
Yes! This plugin should be compatible with any host.
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.
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.
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:
wp-config.phpfile, as shown here
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.
A simple plugin to update URLs or other text in a database.View Cart
Cookiebot is a cloud-driven solution that automatically controls cookies an...
This plugin inserts social share links at the top or bottom of each post.
Flexible button creator allowing you to stick floating buttons to the side ...
YITH WooCommerce Catalog Mode, a plugin for disabling sales in your e-comme...