Skip to content

Instantly share code, notes, and snippets.

@vienhoang
Created August 5, 2014 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vienhoang/3f54031fa6dd4b9df2c8 to your computer and use it in GitHub Desktop.
Save vienhoang/3f54031fa6dd4b9df2c8 to your computer and use it in GitHub Desktop.
WordPress: Search and replace quick guide
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
Search and Replace WordPress script
- Copy the "Search-Replace-DB-master" folder to WordPress root
- Go to domainname.com/Search-Replace-DB-master/index.php
- Replace "domainname.com" with "localhost/stagedomain"
- Click "dry run" check the results, then "live run"
- Login at wp-admin and update permalinks settings. Refresh the page and everything should work.
- Remove the "Search-Replace-DB-master" folder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment