Skip to content

Instantly share code, notes, and snippets.

@nmec
Created December 24, 2011 20:50
Show Gist options
  • Save nmec/1518313 to your computer and use it in GitHub Desktop.
Save nmec/1518313 to your computer and use it in GitHub Desktop.
Fix media URLs after moving WordPress into a sub-directory: http://nmecdesign.com/?p=212
UPDATE wp_posts SET post_content = REPLACE(post_content, "YourWebsite.com/wp-content", "YourWebsite.com/wp/wp-content");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment