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

Name Last modified Comments Description

Back Parent Directory

Moving WordPress to a different URL

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

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');

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.
Anti-Spam Image