Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

From one domain (foo.com), select export as WXR and import to (bar.com), also I manually uploaded wp-contents to the new location.

Everything is working, except the the images in the blog post still using the old domain.

  1. How to solve it?
  2. I have tried to upload into wp.com and they can auto update the images' location, but this does not work for self-hosted wordpress?

Thanks.

share|improve this question
add comment

4 Answers

up vote 1 down vote accepted

When you import the WXR file to the WordPress install on the new domain, be sure to click the "Download attachments" checkbox that you are presented during the upload process.

share|improve this answer
add comment

Try this plugin - http://wordpress.org/extend/plugins/search-and-replace/

Search for your old domain and replace with new... should search through all entries in your database and replace.

share|improve this answer
add comment

Also check this out: http://interconnectit.com/124/search-and-replace-for-wordpress-databases/ It's not a plugin, just a script you load directly. Great tool and personally I migrate all my WP sites with it.

share|improve this answer
add comment

If it is an option (the old domain still has to be functional and you can't do it from localhost to hosted) Chip Bennet's solution is probably the best, otherwise, I like Velvet Blues Update Urls.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.