Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vkoser/389610 to your computer and use it in GitHub Desktop.
Save vkoser/389610 to your computer and use it in GitHub Desktop.
-- specifically used this to update non relative links in my mssql
-- database for old posts after blog move
UPDATE wp_posts SET post_content =
REPLACE( post_content, 'http://www.kosertech.com/blog/' , 'http://www.kosertech.com/')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment