Skip to content

Instantly share code, notes, and snippets.

@brendannee
Created November 3, 2011 17:47
Show Gist options
  • Save brendannee/1337172 to your computer and use it in GitHub Desktop.
Save brendannee/1337172 to your computer and use it in GitHub Desktop.
Find/replace links in Wordpress posts for changing a sites URL (Example)
update wp_posts set post_content = replace(post_content, 'http:\/\/www.oldsite.com\/blog', 'http:\/\/newsite.com');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment