Index of /andrejciho/WordPress/Moving WordPress to a different URL

Post Title Posted Description
Back Parent Directory
Moving WordPress to a different URL 2008-04-25 11:48

A set of DB queries to help switch the URL


Be Sociable, Share!

I’ve mentioned this in the past in my Nightly Mysql Backup but just recently realized I also have to update the guid

1
2
3
4
5
6
7
<code>
UPDATE wp_posts
SET post_content = REPLACE(post_content,'localhost/test','www.example.com'),
guid = REPLACE(guid,'localhost/test','www.example.com');
UPDATE wp_options
SET option_value = REPLACE(option_value,'localhost/test','www.example.com');
</code>

Leave a Comment
*Required
*Required (Never published)
 

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

This website is powered by Wordpress