Skip to content

Instantly share code, notes, and snippets.

@bonesoul
Created October 11, 2013 10:18
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 bonesoul/6932522 to your computer and use it in GitHub Desktop.
Save bonesoul/6932522 to your computer and use it in GitHub Desktop.
Fix url's in a sql database;
UPDATE wp_posts SET post_content=REPLACE(post_content, 'old-url', 'new-url')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment