Created
February 8, 2013 18:36
-
-
Save seblavoie/4740996 to your computer and use it in GitHub Desktop.
Update wordpress URL
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 wp_posts.guid=REPLACE(wp_posts.guid, | |
'olddomain.com', | |
'newdomain.com' | |
); | |
UPDATE wp_options SET wp_options.option_value='http://newdomain.com' WHERE wp_options.option_name='siteurl' OR wp_options.option_name='home'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment