Created
March 21, 2012 22:08
-
-
Save rezen/2153698 to your computer and use it in GitHub Desktop.
Migrating WordPress attachments on new domain with WP in a sub folder
This file contains hidden or 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 guid = REPLACE(guid,'*old_domain*','*new_domain*') WHERE `post_type` = 'attachment' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment