Created
December 24, 2011 20:50
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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