WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Before I upload my website to server, I created post with images which are uploaded to media, their url are, for example: http://localhost:40952/wp-content/uploads/2011/09/study_in-En.gif

After I uploaded website to server, the link to the images in the post is not updated, therefore, the images are disappeared in post.

Is there anyway I can update the images link automatically? It is very painful to go and fix every link url. Thanks.

share|improve this question

before copy/pasting the database from your local machine to the production server, you should do a Find & Replace on the domain name.

this way you replace localhost:40952 with the correct domain on every url in the database.

or read the part 'Moving WordPress to a New Server' on the codex.

share|improve this answer
Thanx. Let's me try. – John Sep 27 '11 at 14:26

Your Answer


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.